{"_id":"55fca28434ae7c0d00ab8e9c","parentDoc":null,"project":"5553d36165e8260d0024419a","user":"5553d33065e8260d00244199","version":{"_id":"55fc9b793c21291900e7e0d7","__v":12,"project":"5553d36165e8260d0024419a","createdAt":"2015-09-18T23:17:13.545Z","releaseDate":"2015-09-18T23:17:13.545Z","categories":["55fc9b7a3c21291900e7e0d8","55fc9b7a3c21291900e7e0d9","55fc9b7a3c21291900e7e0da","55fc9b7a3c21291900e7e0db","55fc9b7a3c21291900e7e0dc","55fc9b7a3c21291900e7e0dd","55fc9b7a3c21291900e7e0de","55fc9b7a3c21291900e7e0df","55fc9b7a3c21291900e7e0e0","55fc9b7a3c21291900e7e0e1","55fc9b7a3c21291900e7e0e2","55fc9b7a3c21291900e7e0e3","55fc9bad4c80910d00b9bece","56394a0c3539050d00082122","56394a2f68b11f0d0048c9ff","56394a462fc5520d001a4db3","56394a4c2fc5520d001a4db4","56394a5b049e420d00476b5c","56394a6a2fc5520d001a4db5","56394f791593e4190073a44b","567b3adfb56bac0d0019d8d9","569d590e5a2b060d008741eb","569ea93dffccd10d00a05c7f"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2"},"category":{"_id":"56394a5b049e420d00476b5c","project":"5553d36165e8260d0024419a","pages":[],"version":"55fc9b793c21291900e7e0d7","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-11-03T23:59:23.891Z","from_sync":false,"order":17,"slug":"api-authentication-tokens","title":"API: Authentication Tokens"},"__v":1,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-09-18T23:47:16.789Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"","language":"text"}]},"method":"get","results":{"codes":[{"status":200,"language":"json","code":"{\n  \"meta\": {\n    \"next_cursor\": \"ClgKKQoEbmFtZRIhGh9UZXN0IDIwMTUtMDktMTQgMjA6MjE6MDcuNzk1ODAxEidqDGRldn52aWF0ZXN0c3IXCxIKVGVzdFNldHVwMhiAgICAoN25CwwYACAA\", \n    \"more\": false\n  }, \n  \"results\": [\n    {\n      \"token\": {\n        \"access_token\": \"CAACTZAarW6x0BAJFQZBZBAxdqowKveYoecDJsXCVNZCK7IAWYXj24BjwkiD4Fuc0LnKRgb2rqMVLotKP1MajEpFWTYH1guESOQZBxR1fZCk0lRbWytcZBOgwqZCWoGbtLu1sIfqjM04HJifNQpYV0KrIARdcY5ZCoXc7G5ZACqGEoaTsWYWNVJWgdoRUZBla6JJ2qb1oNpJjO82hSzapcYh0ItT\", \n        \"expire_time\": \"2015-04-26T00:11:23.792631Z\", \n        \"grant_type\": \"authorization_code\", \n        \"expires_in\": 5182406\n      }, \n      \"meta\": {\n        \"auth_type\": \"OAUTH2\", \n        \"domain\": \"graph.facebook.com\", \n        \"name\": \"Auth noscope test\", \n        \"created\": \"2015-02-25T00:38:07.792714Z\", \n        \"last_update\": \"2015-05-01T20:02:45.458279Z\", \n        \"owner\": \"agxkZXZ-dmlhdGVzdHNyEQsSBFVzZXIYgICAgICAgAoM\", \n        \"auth_id\": \"agxkZXZ-dmlhdGVzdHNyGgsSDVNlcnZpY2VDb25maWcYgICAgIDQuwkM\"\n      }, \n      \"id\": \"agxkZXZ-dmlhdGVzdHNyFgsSCUF1dGhUb2tlbhiAgICAgL7BCAw\", \n      \"api_response\": {\n        \"access_token\": \"CAACTZAarW6x0BAJFQZBZBAxdqowKveYoecDJsXCVNZCK7IAWYXj24BjwkiD4Fuc0LnKRgb2rqMVLotKP1MajEpFWTYH1guESOQZBxR1fZCk0lRbWytcZBOgwqZCWoGbtLu1sIfqjM04HJifNQpYV0KrIARdcY5ZCoXc7G5ZACqGEoaTsWYWNVJWgdoRUZBla6JJ2qb1oNpJjO82hSzapcYh0ItT\", \n        \"expires\": \"5182406\"\n      }\n    }, \n    ... list of Workflows ...\n  ]\n}","name":""}]},"settings":"","auth":"required","params":[],"url":"/tokens/"},"isReference":false,"order":1,"body":"Use this API to list the Tokens in your account.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"import APImetrics\\n\\napimetrics = APImetrics.APImetricsAPI(apimetrics_key=\\\"your_api_key\\\")\\ncursor = None\\nmore = False\\nwhile more:\\n\\tresp = apimetrics.list_tokens(cursor=cursor, limit=200)\\n\\tmore = resp['meta']['more']\\n  cursor = resp['meta']['cursor']\\n  for result in resp['results']\\n  \\tprint result['name']\\n\",\n      \"language\": \"python\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"tokens","type":"endpoint","title":"List Auth Tokens"}

getList Auth Tokens


Definition

{{ api_url }}{{ page_api_url }}

Result Format


Documentation

Use this API to list the Tokens in your account. [block:code] { "codes": [ { "code": "import APImetrics\n\napimetrics = APImetrics.APImetricsAPI(apimetrics_key=\"your_api_key\")\ncursor = None\nmore = False\nwhile more:\n\tresp = apimetrics.list_tokens(cursor=cursor, limit=200)\n\tmore = resp['meta']['more']\n cursor = resp['meta']['cursor']\n for result in resp['results']\n \tprint result['name']\n", "language": "python" } ] } [/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 }}