method (Text): The http method with which to call the url.
headers (List of HttpKeyValuePair): A list of headers you wish to send as part of the request. Built with a!httpHeader().
queryParameters (List of HttpKeyValuePair): A list of query parameters you wish to add to the request. Built with a!httpQueryParameter().
basicAuthenticationCredentials (HttpAuthenticationBasic): The credentials for the request. Built with a!httpAuthenticationBasic().
body (Any Type): The request body.
This function returns a writer and must be used with the bind() function.
Read From and Write To a Web API From Within a SAIL Interface
Instacount.io is a website that provides a web API that lets you increment and decrement a counter via HTTP requests. You can find more details on the Instacount web API at http://instacount.io. Note that this example is using an account tier that is limited to 1000 requests per month. If it is not working, set up your own free account on Instacount and replace the application id and API key with your unique values.
Copy and paste the expression into the Interface Designer to test it.