{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","params":[],"results":{"codes":[]},"settings":""},"next":{"description":"","pages":[]},"title":"Client","type":"basic","slug":"client","excerpt":"","body":"The client sends requests to other web services. You can use this to receive data from or trigger events on other APIs.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Example\"\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"let response = app.client.get(\\\"http://myapi.io/v1/information\\\")\",\n      \"language\": \"swift\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Query Data\"\n}\n[/block]\nYou can append optional query data to the string.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"let response = app.client.get(\\\"http://myapi.io/v1/search\\\", query: [\\\"q\\\": \\\"test\\\"])\",\n      \"language\": \"swift\"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Other Methods\"\n}\n[/block]\nThe client supports all of the HTTP verbs.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"_ = app.client.post(\\\"http://myapi.io/v1/trigger\\\")\",\n      \"language\": \"swift\"\n    }\n  ]\n}\n[/block]","updates":[],"order":999,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"57687e7ad98cfd0e006761dc","version":{"version":"0.12","version_clean":"0.12.0","codename":"Client Clyde","is_stable":false,"is_beta":true,"is_hidden":false,"is_deprecated":true,"categories":["5768701b72cd4c0e000fad19","5768701b72cd4c0e000fad1a","5768701b72cd4c0e000fad1b","5768701b72cd4c0e000fad1c"],"_id":"5768701b72cd4c0e000fad18","releaseDate":"2016-06-20T22:37:15.641Z","__v":1,"createdAt":"2016-06-20T22:37:15.641Z","project":"57086fe855a4690e005de407"},"project":"57086fe855a4690e005de407","__v":11,"category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Guide","slug":"getting-started","order":1,"from_sync":false,"reference":false,"_id":"5768701b72cd4c0e000fad1a","createdAt":"2016-04-09T04:31:52.489Z","__v":0,"version":"5768701b72cd4c0e000fad18","project":"57086fe855a4690e005de407"},"createdAt":"2016-06-20T23:38:34.173Z","githubsync":"","user":"57086f3d447c410e00221bd1"}
The client sends requests to other web services. You can use this to receive data from or trigger events on other APIs. [block:api-header] { "type": "basic", "title": "Example" } [/block] [block:code] { "codes": [ { "code": "let response = app.client.get(\"http://myapi.io/v1/information\")", "language": "swift" } ] } [/block] [block:api-header] { "type": "basic", "title": "Query Data" } [/block] You can append optional query data to the string. [block:code] { "codes": [ { "code": "let response = app.client.get(\"http://myapi.io/v1/search\", query: [\"q\": \"test\"])", "language": "swift" } ] } [/block] [block:api-header] { "type": "basic", "title": "Other Methods" } [/block] The client supports all of the HTTP verbs. [block:code] { "codes": [ { "code": "_ = app.client.post(\"http://myapi.io/v1/trigger\")", "language": "swift" } ] } [/block]