{"_id":"569752add231880d00676e70","editedParams2":true,"project":"5668fab608f90021008e882f","__v":6,"category":{"_id":"569742f459a6692d003fad8f","pages":["56974f48d231880d00676e6a","56975101d231880d00676e6c","5697511369393517000c82c8","5697512159a6692d003fada0","569752668560a60d00e2c268","569752898560a60d00e2c26b","569752add231880d00676e70","569752bd8400d52d00dd56ab","569752c769393517000c82cc","56e9cf33fae86b0e00e5394f","56e9cfe2af392b170035f68f"],"project":"5668fab608f90021008e882f","version":"5668fab608f90021008e8832","__v":11,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-01-14T06:40:52.350Z","from_sync":false,"order":1,"slug":"api-integration-rest-api","title":"REST API (For App/Backend)"},"parentDoc":null,"user":"56839cf74aecbd0d00a4659e","editedParams":true,"version":{"_id":"5668fab608f90021008e8832","__v":19,"project":"5668fab608f90021008e882f","createdAt":"2015-12-10T04:08:22.769Z","releaseDate":"2015-12-10T04:08:22.769Z","categories":["5668fab708f90021008e8833","569740f124490c3700170a64","569742b58560a60d00e2c25d","569742bd0b09a41900b2446c","569742cd69393517000c82b3","569742f459a6692d003fad8f","569743020b09a41900b2446d","5697430b69393517000c82b5","56a17776470ae00d00c30642","56a2c48a831e2a0d0069b1ad","56b535757bccae0d00e9a1cd","56e1ff6aa49fdc0e005746b5","57e1c88115bf6522002a5e4e","57fa65275ba65a17008b988f","57fbeea34002550e004c032e","58474584889b6c2d00fb86e9","58475dcc64157f0f002f1907","587e7b5158666c2700965d4e","58a349fc30852819007ba083"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.18.0","version":"1.18"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-01-14T07:47:57.343Z","link_external":false,"link_url":"https://documenter.getpostman.com/view/2166502/liftigniter/7TFGvSV#804755d6-2115-511e-b718-3b1d184dd053","githubsync":"","sync_unique":"","hidden":false,"api":{"method":"get","results":{"codes":[{"name":"insert user, wait 60 seconds, then request it","code":"{\n    \"user\": {\n        \"company\": [\n            \"Smart Light Solutions Ltd.\"\n        ],\n        \"hometown\": [\n            \"Chicago\"\n        ],\n        \"interests\": [\n            \"personalization\",\n            \"video\",\n            \"media\"\n        ],\n        \"userId\": [\n            \"alfred03\"\n        ]\n    }\n}\n","language":"json","status":200},{"status":400,"name":"delete user, wait 60 seconds, then request it","code":"{\n    \"status\": \"Bad Request: User not found.\",\n    \"statusCode\": 400\n}","language":"json"}]},"settings":"56975ef369393517000c82d7","examples":{"codes":[{"language":"curl","code":"# We first insert an item to make sure our CURL will work\ncurl -H \"Content-Type: application/json\" -d '{\n  \"apiKey\" : \"YOUR_API_KEY\", // REPLACE WITH YOUR API KEY AND DELETE THIS COMMENT\n  \"users\" : [\n    {\n      \"userId\" : \"alfred03\",\n      \"hometown\" : \"Chicago\",\n      \"company\" : \"Smart Light Solutions Ltd.\",\n      \"interests\" : [\"personalization\", \"video\", \"media\"]\n    }\n  ]\n}' https://api.petametrics.com/v1/user | python -mjson.tool\n\n# We then sleep for 60 seconds to make sure the insertion is completed. Insertions are usually faster but this is just to be safe.\nsleep 60\n\n# We now fetch the item (our main command!)\ncurl -H \"x-api-key:527ccb8c-0f33-47e5-bff8-d9c2bcaef59e\" https://api.petametrics.com/v1/user/alfred03","name":"cURL insert user, wait 60 seconds, then request it"},{"code":"# We first insert an item to make sure our CURL will work\ncurl -H \"Content-Type: application/json\" -X \"DELETE\" -d '{\n  \"apiKey\" : \"527ccb8c-0f33-47e5-bff8-d9c2bcaef59e\",\n  \"users\" : [\n    {\n      \"userId\" : \"alfred03\"\n    }\n  ]\n}' https://api.petametrics.com/v1/user | python -mjson.tool\n\n# We then sleep for 60 seconds to make sure the insertion is completed. Insertions are usually faster but this is just to be safe.\nsleep 60\n\n# We now fetch the item (our main command!)\ncurl -H \"x-api-key:527ccb8c-0f33-47e5-bff8-d9c2bcaef59e\" https://api.petametrics.com/v1/user/alfred03 | python -mjson.tool","language":"curl","name":"delete user, wait 60 seconds, then request it"}]},"auth":"required","params":[{"_id":"56999a8e94a308190081fec3","ref":"","in":"path","required":true,"desc":"ID of the user to reference","default":"","type":"string","name":"userId"}],"url":"/user/:userId"},"isReference":true,"order":11,"body":"","excerpt":"","slug":"userid","type":"link","title":"/user/:id - GET"}