![]() ![]() Once we have the returned data, it will be in JSON format but to work with it we have to convert it to PowerShell object. REST web service endpoint can be invoked from PowerShell using the ‘Invoke-WebRequest’ cmdlet. We can check the version by running the below command. So we have to ensure that the system has PowerShell version 3.0 or above. We are using the cmdlet ‘Invoke-WebRequest’, which was introduced in V3.0, to invoke REST Web service and get data from the web. The REST end point that we will consume is, We shall make use of the specific REST web service that gets the states and We will be making use of the Free RESTful web services available here which Though we can create a custom REST service, for the time being, we can try out an already existing one. Before heading over to the mail sending functionality let’s have a look at the REST Service that we will be In the demo, we will be reading JSON data from a REST service and we will be using Office 365 SMTP Server to relay the mail to the business users. As part of the walk through we will see how to send plain text as mail body. How to make use of Office 365 SMTP Servers to relay mails to business users. ![]() In order to facilitate the mail sending functionality we can make use of the various SMTP Servers available. We can either send body as text or even as attachments in the mail. We have the capability to send mails from PowerShell. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |