{"action":"created","issue":{"url":"https://api.github.com/repos/justmiles/node-atlassian-confluence/issues/4","labels_url":"https://api.github.com/repos/justmiles/node-atlassian-confluence/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/justmiles/node-atlassian-confluence/issues/4/comments","events_url":"https://api.github.com/repos/justmiles/node-atlassian-confluence/issues/4/events","html_url":"https://github.com/justmiles/node-atlassian-confluence/pull/4","id":103514893,"number":4,"title":"Adding the ability to setContentLabels","user":{"login":"bgregorius","id":4182145,"avatar_url":"https://avatars.githubusercontent.com/u/4182145?v=3","gravatar_id":"","url":"https://api.github.com/users/bgregorius","html_url":"https://github.com/bgregorius","followers_url":"https://api.github.com/users/bgregorius/followers","following_url":"https://api.github.com/users/bgregorius/following{/other_user}","gists_url":"https://api.github.com/users/bgregorius/gists{/gist_id}","starred_url":"https://api.github.com/users/bgregorius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgregorius/subscriptions","organizations_url":"https://api.github.com/users/bgregorius/orgs","repos_url":"https://api.github.com/users/bgregorius/repos","events_url":"https://api.github.com/users/bgregorius/events{/privacy}","received_events_url":"https://api.github.com/users/bgregorius/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-27T13:52:44Z","updated_at":"2015-08-27T14:39:40Z","closed_at":"2015-08-27T14:35:50Z","pull_request":{"url":"https://api.github.com/repos/justmiles/node-atlassian-confluence/pulls/4","html_url":"https://github.com/justmiles/node-atlassian-confluence/pull/4","diff_url":"https://github.com/justmiles/node-atlassian-confluence/pull/4.diff","patch_url":"https://github.com/justmiles/node-atlassian-confluence/pull/4.patch"},"body":"The project I was working on required the ability to set the labels of the page content I was creating so I added the setContentLabels method.\r\n\r\nSample usage:\r\n\r\n```javascript\r\nvar confluence = require('atlassian-confluence');\r\nvar contentId = 12345; // your page id\r\nvar labels = [{ prefix: \"global\", name: \"mylabel\"];\r\nconfluence.setContentLabels(contentId, labels, function (labels) {\r\n    // Do stuff\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/justmiles/node-atlassian-confluence/issues/comments/135455154","html_url":"https://github.com/justmiles/node-atlassian-confluence/pull/4#issuecomment-135455154","issue_url":"https://api.github.com/repos/justmiles/node-atlassian-confluence/issues/4","id":135455154,"user":{"login":"justmiles","id":1012226,"avatar_url":"https://avatars.githubusercontent.com/u/1012226?v=3","gravatar_id":"","url":"https://api.github.com/users/justmiles","html_url":"https://github.com/justmiles","followers_url":"https://api.github.com/users/justmiles/followers","following_url":"https://api.github.com/users/justmiles/following{/other_user}","gists_url":"https://api.github.com/users/justmiles/gists{/gist_id}","starred_url":"https://api.github.com/users/justmiles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justmiles/subscriptions","organizations_url":"https://api.github.com/users/justmiles/orgs","repos_url":"https://api.github.com/users/justmiles/repos","events_url":"https://api.github.com/users/justmiles/events{/privacy}","received_events_url":"https://api.github.com/users/justmiles/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T14:39:40Z","updated_at":"2015-08-27T14:39:40Z","body":"this was published to npm under version 1.0.5"}}