{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/message","auth":"required","examples":{"codes":[{"code":"params = {'uuid':  'D867AB3E-36D2-11E4-AEA8-76C9E2E253B6'}\nmessages = requests.get('https://api.pushjet.io/message', params=params)\n\nfor message in messages:\n  do_thing(message)","name":"","language":"python"}]},"method":"get","params":[{"name":"uuid","type":"string","default":"D867AB3E-36D2-11E4-AEA8-76C9E2E253B6","desc":"The device UUID","required":true,"in":"query","ref":"","_id":"555fa2e5d7777119003ad009"}],"results":{"codes":[{"name":"","status":200,"language":"json","code":"{\n  'messages': [\n    {\n      \"level\": 3,\n      \"link\": \"\", \n      \"message\": \"Download just completed\", \n      \"timestamp\": 1410106353,\n      \"title\": \"Cool movie\",\n      \"service\": {\n        \"created\": 1410106353,\n        \"icon\": \"https://upload.wikimedia.org/wikipedia/commons/8/88/Red_triangle_alert_icon.png\",\n        \"name\": \"Important stuff\",\n        \"public\": \"4be3-eda97a-0d7faeab05a0-89403-ad4751c49\"\n      }\n    }\n  ]\n}"}]},"settings":""},"next":{"description":"","pages":[]},"title":"Fetch unread messages","type":"endpoint","slug":"fetch-unread-messages","excerpt":"","body":"Fetches all unread messages from the server.","updates":[],"order":1,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"555fa2e5d7777119003ad008","parentDoc":null,"project":"555f9bf814d68e0d00966587","category":{"sync":{"isSync":false,"url":""},"pages":["555fa194d7777119003ad000","555fa2e5d7777119003ad008","555fa3abd7777119003ad00d"],"title":"Message","slug":"message","order":1,"from_sync":false,"reference":false,"_id":"555fa040d7777119003acffd","project":"555f9bf814d68e0d00966587","__v":3,"createdAt":"2015-05-22T21:31:44.995Z","version":"555f9bf814d68e0d0096658a"},"editedParams":true,"__v":0,"version":{"version":"1.0","version_clean":"1.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["555f9bf814d68e0d0096658b","555f9e9ed7777119003acfee","555fa040d7777119003acffd","555fa344d7777119003ad00b","555fa3e6d7777119003ad00f","555fb694336c041700a9b86e","555fb779336c041700a9b86f","555fb86bd7777119003ad039","555fbf1a336c041700a9b87f"],"_id":"555f9bf814d68e0d0096658a","project":"555f9bf814d68e0d00966587","releaseDate":"2015-05-22T21:13:28.470Z","__v":9,"createdAt":"2015-05-22T21:13:28.470Z"},"user":"555f9a010758330d000d531a","createdAt":"2015-05-22T21:43:01.304Z","githubsync":"","editedParams2":true}

getFetch unread messages


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Query Params

uuid:
required
stringD867AB3E-36D2-11E4-AEA8-76C9E2E253B6
The device UUID

Examples


Result Format


Documentation

Fetches all unread messages from the server.

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 }}