http.setAuth
http.setAuth(auth)
Description
Sets authentication of the http request. Expects an authentication as input.
Parameters
| Parameter | Type | Explanation |
|---|---|---|
| auth | Authentication | The authentication object recieved from calling .getAuthentication() on an authentication profile which is returned by api.getAuth(name)(LINK to../../api/getting/getAuth.md) |
Example
http = option.http
auth = api.getAuth("1gtw_creds").getAuthentication()
http.setAuth(auth)