{"_id":"576d42354bcd290e00428959","project":"56a526d4e7a1622b0024fae4","parentDoc":null,"user":"56a5d42ab28bc21700503989","category":{"_id":"576d42354bcd290e00428944","__v":0,"version":"576d42354bcd290e00428941","project":"56a526d4e7a1622b0024fae4","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-02-11T11:25:07.821Z","from_sync":false,"order":0,"slug":"objective-c","title":"Our API"},"editedParams":true,"version":{"_id":"576d42354bcd290e00428941","project":"56a526d4e7a1622b0024fae4","__v":1,"createdAt":"2016-06-24T14:22:45.076Z","releaseDate":"2016-06-24T14:22:45.076Z","categories":["576d42354bcd290e00428942","576d42354bcd290e00428943","576d42354bcd290e00428944","576d42354bcd290e00428945","576d42354bcd290e00428946","576d42354bcd290e00428947"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2"},"__v":0,"editedParams2":true,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-03-07T17:03:37.392Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","examples":{"codes":[]},"method":"get","results":{"codes":[]},"auth":"never","params":[{"_id":"56bcabeee50b360d00984e04","ref":"","in":"path","required":false,"desc":"Your Chirp app key","default":"","type":"string","name":"app_key"}],"url":"/authenticate/:app_key"},"isReference":true,"order":3,"body":"[block:textarea]\n{\n  \"text\": \"## Request\",\n  \"sidebar\": true\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"$.get('https://api.chirp.io/v1/authenticate/my_app_key', function (data) {\\n  localStorage['access-token'] = data.access_token;\\n});\",\n      \"language\": \"javascript\"\n    }\n  ],\n  \"sidebar\": true\n}\n[/block]\n\n[block:textarea]\n{\n  \"text\": \"## Results\",\n  \"sidebar\": true\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"name\": 200,\n      \"code\": \"{\\n    \\\"access\\\": {\\n        \\\"analytics\\\": [\\n            \\\"create\\\",\\n            \\\"read\\\"\\n        ],\\n        \\\"chirps\\\": [\\n            \\\"create\\\",\\n            \\\"read\\\",\\n            \\\"say\\\",\\n            \\\"hear\\\"\\n        ]\\n    },\\n    \\\"access_token\\\": \\\"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\\\",\\n    \\\"expires_at\\\": \\\"2016-02-23T15:43:44.642000\\\"\\n}\",\n      \"language\": \"json\",\n      \"status\": 200\n    },\n    {\n      \"name\": 400,\n      \"code\": \"{\\n    \\\"status\\\": 400,\\n    \\\"description\\\": \\\"Bad Request: Invalid parameter(s).\\\",\\n    \\\"error\\\": true\\n}\",\n      \"language\": \"json\",\n      \"status\": 400\n    },\n    {\n      \"code\": \"{\\n    \\\"status\\\": 403,\\n    \\\"description\\\": \\\"Forbidden: Invalid credentials.\\\",\\n    \\\"error\\\": true\\n}\",\n      \"language\": \"json\",\n      \"status\": 403,\n      \"name\": 403\n    },\n    {\n      \"code\": \"{\\n    \\\"status\\\": 405,\\n    \\\"description\\\": \\\"Method Not Allowed: The request does not come from a browser.\\\",\\n    \\\"error\\\": true\\n}\",\n      \"language\": \"json\",\n      \"status\": 405,\n      \"name\": 405\n    }\n  ],\n  \"sidebar\": true\n}\n[/block]","excerpt":"Authenticate your credentials on the Chirp API.","slug":"api-get-authenticate","type":"endpoint","title":"/authenticate/:app_key"}

get/authenticate/:app_key

Authenticate your credentials on the Chirp API.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

app_key:
string
Your Chirp app key

Documentation

[block:textarea] { "text": "## Request", "sidebar": true } [/block] [block:code] { "codes": [ { "code": "$.get('https://api.chirp.io/v1/authenticate/my_app_key', function (data) {\n localStorage['access-token'] = data.access_token;\n});", "language": "javascript" } ], "sidebar": true } [/block] [block:textarea] { "text": "## Results", "sidebar": true } [/block] [block:code] { "codes": [ { "name": 200, "code": "{\n \"access\": {\n \"analytics\": [\n \"create\",\n \"read\"\n ],\n \"chirps\": [\n \"create\",\n \"read\",\n \"say\",\n \"hear\"\n ]\n },\n \"access_token\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n \"expires_at\": \"2016-02-23T15:43:44.642000\"\n}", "language": "json", "status": 200 }, { "name": 400, "code": "{\n \"status\": 400,\n \"description\": \"Bad Request: Invalid parameter(s).\",\n \"error\": true\n}", "language": "json", "status": 400 }, { "code": "{\n \"status\": 403,\n \"description\": \"Forbidden: Invalid credentials.\",\n \"error\": true\n}", "language": "json", "status": 403, "name": 403 }, { "code": "{\n \"status\": 405,\n \"description\": \"Method Not Allowed: The request does not come from a browser.\",\n \"error\": true\n}", "language": "json", "status": 405, "name": 405 } ], "sidebar": true } [/block]

User Information

Try It Out

get
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}