A
P
I
_
S
E
T
U
P

<-- Back to Tags

{API_SETUP(api_alias, url, params, method, response)}

For example, 

{API_SETUP(API, https://api.example.com, {"username": "USER", "password": "SECRET"}, POST, JSON)}
Parameters
Number Name Default Type Description
1 api_alias String The alias to use to reference this API service
2 url String The URL to send requests to.
3 params String

Parameters to send with every call. For example, a username and password.

Submitted as a JSON object, 

{"username": "USER", "password": "SECRET"}
4 method GET String The http request method, GET or POST. Case insensitive.
5 response String The format of the response, JSON, XML or TEXT. Case insensitive.

Log in to add a Comment.