These docs are for v0.12. Click to read the latest docs for v0.16.

The client sends requests to other web services. You can use this to receive data from or trigger events on other APIs.

Example

let response = app.client.get("http://myapi.io/v1/information")

Query Data

You can append optional query data to the string.

let response = app.client.get("http://myapi.io/v1/search", query: ["q": "test"])

Other Methods

The client supports all of the HTTP verbs.

_ = app.client.post("http://myapi.io/v1/trigger")