...
To access the webClient
, use the following syntax:
Deprecated was - still works but it is no longer required to specify the method and url when getting the webclient
Code Block | ||
---|---|---|
| ||
let webClient = context.getWebClient("GET", "https://host.com/some-uri"); |
Method: The first argument specifies the HTTP method (GET, PUT, POST, DELETE).URI: The second argument is the URI to which the request will be sent.
Simple way
Code Block | ||
---|---|---|
| ||
let webClient = context.getWebClient(); |
the method and uri are specified when using the web client
Authentication and Connection Routing
...