{"action":"created","comment":{"url":"https://api.github.com/repos/attm2x/m2x-nodejs/pulls/comments/48411624","id":48411624,"diff_hunk":"@@ -424,6 +424,50 @@ Devices.prototype.log = function(id, callback) {\n     return this.client.get(helpers.url(\"/devices/%s/log\", id), callback);\n };\n \n+// Device's List of Received Commands\n+//\n+// Retrieve the list of recent commands sent to the current device (as given by the API key).\n+//\n+// https://m2x.att.com/developer/documentation/v2/commands#Device-s-List-of-Received-Commands\n+Devices.prototype.commands = function(id, params, callback) {\n+    if (typeof params === \"function\") {\n+        callback = params;\n+        params = {};\n+    }\n+\n+    return this.client.get(helpers.url(\"/devices/%s/commands\", id), { qs: params || {} }, callback);\n+};\n+\n+// Device's View of Command Details\n+//\n+// Get details of a received command including the delivery information for\n+// this device.\n+//\n+// https://m2x.att.com/developer/documentation/v2/commands#Device-s-View-of-Command-Details\n+Devices.prototype.command = function(id, commandId, callback) {\n+    return this.client.get(\n+        helpers.url(\"/devices/%s/commands/%s\", id, commandId),\n+        callback);\n+};\n+\n+// Process a command\n+//\n+// https://m2x.att.com/developer/documentation/v2/commands#Device-Marks-a-Command-as-Processed\n+Devices.prototype.process_command = function(id, commandId, callback) {","path":"lib/devices.js","position":null,"original_position":33,"commit_id":"0cc7df2351940cbf55c2e89b8007644318adbc66","original_commit_id":"ca432c2fb6ec86e27d10a49da6525678f5e81260","user":{"login":"fsaravia","id":920417,"avatar_url":"https://avatars.githubusercontent.com/u/920417?v=3","gravatar_id":"","url":"https://api.github.com/users/fsaravia","html_url":"https://github.com/fsaravia","followers_url":"https://api.github.com/users/fsaravia/followers","following_url":"https://api.github.com/users/fsaravia/following{/other_user}","gists_url":"https://api.github.com/users/fsaravia/gists{/gist_id}","starred_url":"https://api.github.com/users/fsaravia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsaravia/subscriptions","organizations_url":"https://api.github.com/users/fsaravia/orgs","repos_url":"https://api.github.com/users/fsaravia/repos","events_url":"https://api.github.com/users/fsaravia/events{/privacy}","received_events_url":"https://api.github.com/users/fsaravia/received_events","type":"User","site_admin":false},"body":"My bad, thanks for noticing!","created_at":"2015-12-24T11:56:21Z","updated_at":"2015-12-24T11:56:21Z","html_url":"https://github.com/attm2x/m2x-nodejs/pull/30#discussion_r48411624","pull_request_url":"https://api.github.com/repos/attm2x/m2x-nodejs/pulls/30","_links":{"self":{"href":"https://api.github.com/repos/attm2x/m2x-nodejs/pulls/comments/48411624"},"html":{"href":"https://github.com/attm2x/m2x-nodejs/pull/30#discussion_r48411624"},"pull_request":{"href":"https://api.github.com/repos/attm2x/m2x-nodejs/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/attm2x/m2x-nodejs/pulls/30","id":54513608,"html_url":"https://github.com/attm2x/m2x-nodejs/pull/30","diff_url":"https://github.com/attm2x/m2x-nodejs/pull/30.diff","patch_url":"https://github.com/attm2x/m2x-nodejs/pull/30.patch","issue_url":"https://api.github.com/repos/attm2x/m2x-nodejs/issues/30","number":30,"state":"open","locked":false,"title":"Feature: Commands API","user":{"login":"fsaravia","id":920417,"avatar_url":"https://avatars.githubusercontent.com/u/920417?v=3","gravatar_id":"","url":"https://api.github.com/users/fsaravia","html_url":"https://github.com/fsaravia","followers_url":"https://api.github.com/users/fsaravia/followers","following_url":"https://api.github.com/users/fsaravia/following{/other_user}","gists_url":"https://api.github.com/users/fsaravia/gists{/gist_id}","starred_url":"https://api.github.com/users/fsaravia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsaravia/subscriptions","organizations_url":"https://api.github.com/users/fsaravia/orgs","repos_url":"https://api.github.com/users/fsaravia/repos","events_url":"https://api.github.com/users/fsaravia/events{/privacy}","received_events_url":"https://api.github.com/users/fsaravia/received_events","type":"User","site_admin":false},"body":"Closes #26 ","created_at":"2015-12-23T22:53:43Z","updated_at":"2015-12-24T11:56:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ba0726468ac172aef53f86fae0d0ed2dd3674955","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/attm2x/m2x-nodejs/pulls/30/commits","review_comments_url":"https://api.github.com/repos/attm2x/m2x-nodejs/pulls/30/comments","review_comment_url":"https://api.github.com/repos/attm2x/m2x-nodejs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/attm2x/m2x-nodejs/issues/30/comments","statuses_url":"https://api.github.com/repos/attm2x/m2x-nodejs/statuses/0cc7df2351940cbf55c2e89b8007644318adbc66","head":{"label":"attm2x:feature/commands-api","ref":"feature/commands-api","sha":"0cc7df2351940cbf55c2e89b8007644318adbc66","user":{"login":"attm2x","id":5272295,"avatar_url":"https://avatars.githubusercontent.com/u/5272295?v=3","gravatar_id":"","url":"https://api.github.com/users/attm2x","html_url":"https://github.com/attm2x","followers_url":"https://api.github.com/users/attm2x/followers","following_url":"https://api.github.com/users/attm2x/following{/other_user}","gists_url":"https://api.github.com/users/attm2x/gists{/gist_id}","starred_url":"https://api.github.com/users/attm2x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/attm2x/subscriptions","organizations_url":"https://api.github.com/users/attm2x/orgs","repos_url":"https://api.github.com/users/attm2x/repos","events_url":"https://api.github.com/users/attm2x/events{/privacy}","received_events_url":"https://api.github.com/users/attm2x/received_events","type":"Organization","site_admin":false},"repo":{"id":14048670,"name":"m2x-nodejs","full_name":"attm2x/m2x-nodejs","owner":{"login":"attm2x","id":5272295,"avatar_url":"https://avatars.githubusercontent.com/u/5272295?v=3","gravatar_id":"","url":"https://api.github.com/users/attm2x","html_url":"https://github.com/attm2x","followers_url":"https://api.github.com/users/attm2x/followers","following_url":"https://api.github.com/users/attm2x/following{/other_user}","gists_url":"https://api.github.com/users/attm2x/gists{/gist_id}","starred_url":"https://api.github.com/users/attm2x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/attm2x/subscriptions","organizations_url":"https://api.github.com/users/attm2x/orgs","repos_url":"https://api.github.com/users/attm2x/repos","events_url":"https://api.github.com/users/attm2x/events{/privacy}","received_events_url":"https://api.github.com/users/attm2x/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/attm2x/m2x-nodejs","description":"AT&T M2X Node.js Library","fork":false,"url":"https://api.github.com/repos/attm2x/m2x-nodejs","forks_url":"https://api.github.com/repos/attm2x/m2x-nodejs/forks","keys_url":"https://api.github.com/repos/attm2x/m2x-nodejs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/attm2x/m2x-nodejs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/attm2x/m2x-nodejs/teams","hooks_url":"https://api.github.com/repos/attm2x/m2x-nodejs/hooks","issue_events_url":"https://api.github.com/repos/attm2x/m2x-nodejs/issues/events{/number}","events_url":"https://api.github.com/repos/attm2x/m2x-nodejs/events","assignees_url":"https://api.github.com/repos/attm2x/m2x-nodejs/assignees{/user}","branches_url":"https://api.github.com/repos/attm2x/m2x-nodejs/branches{/branch}","tags_url":"https://api.github.com/repos/attm2x/m2x-nodejs/tags","blobs_url":"https://api.github.com/repos/attm2x/m2x-nodejs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/attm2x/m2x-nodejs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/attm2x/m2x-nodejs/git/refs{/sha}","trees_url":"https://api.github.com/repos/attm2x/m2x-nodejs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/attm2x/m2x-nodejs/statuses/{sha}","languages_url":"https://api.github.com/repos/attm2x/m2x-nodejs/languages","stargazers_url":"https://api.github.com/repos/attm2x/m2x-nodejs/stargazers","contributors_url":"https://api.github.com/repos/attm2x/m2x-nodejs/contributors","subscribers_url":"https://api.github.com/repos/attm2x/m2x-nodejs/subscribers","subscription_url":"https://api.github.com/repos/attm2x/m2x-nodejs/subscription","commits_url":"https://api.github.com/repos/attm2x/m2x-nodejs/commits{/sha}","git_commits_url":"https://api.github.com/repos/attm2x/m2x-nodejs/git/commits{/sha}","comments_url":"https://api.github.com/repos/attm2x/m2x-nodejs/comments{/number}","issue_comment_url":"https://api.github.com/repos/attm2x/m2x-nodejs/issues/comments{/number}","contents_url":"https://api.github.com/repos/attm2x/m2x-nodejs/contents/{+path}","compare_url":"https://api.github.com/repos/attm2x/m2x-nodejs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/attm2x/m2x-nodejs/merges","archive_url":"https://api.github.com/repos/attm2x/m2x-nodejs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/attm2x/m2x-nodejs/downloads","issues_url":"https://api.github.com/repos/attm2x/m2x-nodejs/issues{/number}","pulls_url":"https://api.github.com/repos/attm2x/m2x-nodejs/pulls{/number}","milestones_url":"https://api.github.com/repos/attm2x/m2x-nodejs/milestones{/number}","notifications_url":"https://api.github.com/repos/attm2x/m2x-nodejs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/attm2x/m2x-nodejs/labels{/name}","releases_url":"https://api.github.com/repos/attm2x/m2x-nodejs/releases{/id}","created_at":"2013-11-01T17:08:49Z","updated_at":"2015-12-14T12:01:38Z","pushed_at":"2015-12-24T11:55:43Z","git_url":"git://github.com/attm2x/m2x-nodejs.git","ssh_url":"git@github.com:attm2x/m2x-nodejs.git","clone_url":"https://github.com/attm2x/m2x-nodejs.git","svn_url":"https://github.com/attm2x/m2x-nodejs","homepage":"https://m2x.att.com/developer/client-libraries","size":118,"stargazers_count":16,"watchers_count":16,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":4,"forks":8,"open_issues":4,"watchers":16,"default_branch":"master"}},"base":{"label":"attm2x:master","ref":"master","sha":"17d63acb85c6b656d6311bedbbe84ee25ac428f6","user":{"login":"attm2x","id":5272295,"avatar_url":"https://avatars.githubusercontent.com/u/5272295?v=3","gravatar_id":"","url":"https://api.github.com/users/attm2x","html_url":"https://github.com/attm2x","followers_url":"https://api.github.com/users/attm2x/followers","following_url":"https://api.github.com/users/attm2x/following{/other_user}","gists_url":"https://api.github.com/users/attm2x/gists{/gist_id}","starred_url":"https://api.github.com/users/attm2x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/attm2x/subscriptions","organizations_url":"https://api.github.com/users/attm2x/orgs","repos_url":"https://api.github.com/users/attm2x/repos","events_url":"https://api.github.com/users/attm2x/events{/privacy}","received_events_url":"https://api.github.com/users/attm2x/received_events","type":"Organization","site_admin":false},"repo":{"id":14048670,"name":"m2x-nodejs","full_name":"attm2x/m2x-nodejs","owner":{"login":"attm2x","id":5272295,"avatar_url":"https://avatars.githubusercontent.com/u/5272295?v=3","gravatar_id":"","url":"https://api.github.com/users/attm2x","html_url":"https://github.com/attm2x","followers_url":"https://api.github.com/users/attm2x/followers","following_url":"https://api.github.com/users/attm2x/following{/other_user}","gists_url":"https://api.github.com/users/attm2x/gists{/gist_id}","starred_url":"https://api.github.com/users/attm2x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/attm2x/subscriptions","organizations_url":"https://api.github.com/users/attm2x/orgs","repos_url":"https://api.github.com/users/attm2x/repos","events_url":"https://api.github.com/users/attm2x/events{/privacy}","received_events_url":"https://api.github.com/users/attm2x/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/attm2x/m2x-nodejs","description":"AT&T M2X Node.js Library","fork":false,"url":"https://api.github.com/repos/attm2x/m2x-nodejs","forks_url":"https://api.github.com/repos/attm2x/m2x-nodejs/forks","keys_url":"https://api.github.com/repos/attm2x/m2x-nodejs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/attm2x/m2x-nodejs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/attm2x/m2x-nodejs/teams","hooks_url":"https://api.github.com/repos/attm2x/m2x-nodejs/hooks","issue_events_url":"https://api.github.com/repos/attm2x/m2x-nodejs/issues/events{/number}","events_url":"https://api.github.com/repos/attm2x/m2x-nodejs/events","assignees_url":"https://api.github.com/repos/attm2x/m2x-nodejs/assignees{/user}","branches_url":"https://api.github.com/repos/attm2x/m2x-nodejs/branches{/branch}","tags_url":"https://api.github.com/repos/attm2x/m2x-nodejs/tags","blobs_url":"https://api.github.com/repos/attm2x/m2x-nodejs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/attm2x/m2x-nodejs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/attm2x/m2x-nodejs/git/refs{/sha}","trees_url":"https://api.github.com/repos/attm2x/m2x-nodejs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/attm2x/m2x-nodejs/statuses/{sha}","languages_url":"https://api.github.com/repos/attm2x/m2x-nodejs/languages","stargazers_url":"https://api.github.com/repos/attm2x/m2x-nodejs/stargazers","contributors_url":"https://api.github.com/repos/attm2x/m2x-nodejs/contributors","subscribers_url":"https://api.github.com/repos/attm2x/m2x-nodejs/subscribers","subscription_url":"https://api.github.com/repos/attm2x/m2x-nodejs/subscription","commits_url":"https://api.github.com/repos/attm2x/m2x-nodejs/commits{/sha}","git_commits_url":"https://api.github.com/repos/attm2x/m2x-nodejs/git/commits{/sha}","comments_url":"https://api.github.com/repos/attm2x/m2x-nodejs/comments{/number}","issue_comment_url":"https://api.github.com/repos/attm2x/m2x-nodejs/issues/comments{/number}","contents_url":"https://api.github.com/repos/attm2x/m2x-nodejs/contents/{+path}","compare_url":"https://api.github.com/repos/attm2x/m2x-nodejs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/attm2x/m2x-nodejs/merges","archive_url":"https://api.github.com/repos/attm2x/m2x-nodejs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/attm2x/m2x-nodejs/downloads","issues_url":"https://api.github.com/repos/attm2x/m2x-nodejs/issues{/number}","pulls_url":"https://api.github.com/repos/attm2x/m2x-nodejs/pulls{/number}","milestones_url":"https://api.github.com/repos/attm2x/m2x-nodejs/milestones{/number}","notifications_url":"https://api.github.com/repos/attm2x/m2x-nodejs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/attm2x/m2x-nodejs/labels{/name}","releases_url":"https://api.github.com/repos/attm2x/m2x-nodejs/releases{/id}","created_at":"2013-11-01T17:08:49Z","updated_at":"2015-12-14T12:01:38Z","pushed_at":"2015-12-24T11:55:43Z","git_url":"git://github.com/attm2x/m2x-nodejs.git","ssh_url":"git@github.com:attm2x/m2x-nodejs.git","clone_url":"https://github.com/attm2x/m2x-nodejs.git","svn_url":"https://github.com/attm2x/m2x-nodejs","homepage":"https://m2x.att.com/developer/client-libraries","size":118,"stargazers_count":16,"watchers_count":16,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":4,"forks":8,"open_issues":4,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/attm2x/m2x-nodejs/pulls/30"},"html":{"href":"https://github.com/attm2x/m2x-nodejs/pull/30"},"issue":{"href":"https://api.github.com/repos/attm2x/m2x-nodejs/issues/30"},"comments":{"href":"https://api.github.com/repos/attm2x/m2x-nodejs/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/attm2x/m2x-nodejs/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/attm2x/m2x-nodejs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/attm2x/m2x-nodejs/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/attm2x/m2x-nodejs/statuses/0cc7df2351940cbf55c2e89b8007644318adbc66"}}}}