{"action":"created","comment":{"url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/pulls/comments/38275265","id":38275265,"diff_hunk":"@@ -147,4 +151,20 @@ trait MailRuApiProvider extends SimpleLogger {\n     }\n   }\n \n+  protected def deleteRemarketingUsersList(authToken: String, usersListId: Int): Boolean = {\n+    val deleteUsersListResponse = Http(s\"$clientApiUrl/api/v1/remarketing_users_list/$usersListId.json\")\n+      .method(\"DELETE\")\n+      .addAuthToken(authToken)\n+      .setTimeouts()\n+      .tryAsString\n+\n+    if (deleteUsersListResponse.code == 204) {\n+      true\n+    } else {\n+      log.error(s\"Code: ${deleteUsersListResponse.code}\")","path":"src/main/scala/net/facetz/mailru/api/MailRuApiProvider.scala","position":90,"original_position":90,"commit_id":"a3e553d1fb874202c8545033ebbf19dbdd919f21","original_commit_id":"a3e553d1fb874202c8545033ebbf19dbdd919f21","user":{"login":"onexdrk","id":1533370,"avatar_url":"https://avatars.githubusercontent.com/u/1533370?v=3","gravatar_id":"","url":"https://api.github.com/users/onexdrk","html_url":"https://github.com/onexdrk","followers_url":"https://api.github.com/users/onexdrk/followers","following_url":"https://api.github.com/users/onexdrk/following{/other_user}","gists_url":"https://api.github.com/users/onexdrk/gists{/gist_id}","starred_url":"https://api.github.com/users/onexdrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onexdrk/subscriptions","organizations_url":"https://api.github.com/users/onexdrk/orgs","repos_url":"https://api.github.com/users/onexdrk/repos","events_url":"https://api.github.com/users/onexdrk/events{/privacy}","received_events_url":"https://api.github.com/users/onexdrk/received_events","type":"User","site_admin":false},"body":"if you log all errors in tryAsString then you could return just deleteUsersListResponse.code == 204","created_at":"2015-08-30T20:00:37Z","updated_at":"2015-08-30T20:00:37Z","html_url":"https://github.com/DataCentricAlliance/segments2mytarget/pull/6#discussion_r38275265","pull_request_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/pulls/comments/38275265"},"html":{"href":"https://github.com/DataCentricAlliance/segments2mytarget/pull/6#discussion_r38275265"},"pull_request":{"href":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/pulls/6","id":43405797,"html_url":"https://github.com/DataCentricAlliance/segments2mytarget/pull/6","diff_url":"https://github.com/DataCentricAlliance/segments2mytarget/pull/6.diff","patch_url":"https://github.com/DataCentricAlliance/segments2mytarget/pull/6.patch","issue_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/issues/6","number":6,"state":"open","locked":false,"title":"Added cleaner for expired users lists","user":{"login":"vovapolu","id":4629312,"avatar_url":"https://avatars.githubusercontent.com/u/4629312?v=3","gravatar_id":"","url":"https://api.github.com/users/vovapolu","html_url":"https://github.com/vovapolu","followers_url":"https://api.github.com/users/vovapolu/followers","following_url":"https://api.github.com/users/vovapolu/following{/other_user}","gists_url":"https://api.github.com/users/vovapolu/gists{/gist_id}","starred_url":"https://api.github.com/users/vovapolu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vovapolu/subscriptions","organizations_url":"https://api.github.com/users/vovapolu/orgs","repos_url":"https://api.github.com/users/vovapolu/repos","events_url":"https://api.github.com/users/vovapolu/events{/privacy}","received_events_url":"https://api.github.com/users/vovapolu/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-26T14:07:32Z","updated_at":"2015-08-30T20:00:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f50a40aee84984298858efe62b021fffe0371358","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/pulls/6/commits","review_comments_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/pulls/6/comments","review_comment_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/issues/6/comments","statuses_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/statuses/a3e553d1fb874202c8545033ebbf19dbdd919f21","head":{"label":"vovapolu:master","ref":"master","sha":"a3e553d1fb874202c8545033ebbf19dbdd919f21","user":{"login":"vovapolu","id":4629312,"avatar_url":"https://avatars.githubusercontent.com/u/4629312?v=3","gravatar_id":"","url":"https://api.github.com/users/vovapolu","html_url":"https://github.com/vovapolu","followers_url":"https://api.github.com/users/vovapolu/followers","following_url":"https://api.github.com/users/vovapolu/following{/other_user}","gists_url":"https://api.github.com/users/vovapolu/gists{/gist_id}","starred_url":"https://api.github.com/users/vovapolu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vovapolu/subscriptions","organizations_url":"https://api.github.com/users/vovapolu/orgs","repos_url":"https://api.github.com/users/vovapolu/repos","events_url":"https://api.github.com/users/vovapolu/events{/privacy}","received_events_url":"https://api.github.com/users/vovapolu/received_events","type":"User","site_admin":false},"repo":{"id":41300701,"name":"segments2mytarget","full_name":"vovapolu/segments2mytarget","owner":{"login":"vovapolu","id":4629312,"avatar_url":"https://avatars.githubusercontent.com/u/4629312?v=3","gravatar_id":"","url":"https://api.github.com/users/vovapolu","html_url":"https://github.com/vovapolu","followers_url":"https://api.github.com/users/vovapolu/followers","following_url":"https://api.github.com/users/vovapolu/following{/other_user}","gists_url":"https://api.github.com/users/vovapolu/gists{/gist_id}","starred_url":"https://api.github.com/users/vovapolu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vovapolu/subscriptions","organizations_url":"https://api.github.com/users/vovapolu/orgs","repos_url":"https://api.github.com/users/vovapolu/repos","events_url":"https://api.github.com/users/vovapolu/events{/privacy}","received_events_url":"https://api.github.com/users/vovapolu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vovapolu/segments2mytarget","description":"Upload FACETz DMP segments to myTarget.com","fork":true,"url":"https://api.github.com/repos/vovapolu/segments2mytarget","forks_url":"https://api.github.com/repos/vovapolu/segments2mytarget/forks","keys_url":"https://api.github.com/repos/vovapolu/segments2mytarget/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vovapolu/segments2mytarget/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vovapolu/segments2mytarget/teams","hooks_url":"https://api.github.com/repos/vovapolu/segments2mytarget/hooks","issue_events_url":"https://api.github.com/repos/vovapolu/segments2mytarget/issues/events{/number}","events_url":"https://api.github.com/repos/vovapolu/segments2mytarget/events","assignees_url":"https://api.github.com/repos/vovapolu/segments2mytarget/assignees{/user}","branches_url":"https://api.github.com/repos/vovapolu/segments2mytarget/branches{/branch}","tags_url":"https://api.github.com/repos/vovapolu/segments2mytarget/tags","blobs_url":"https://api.github.com/repos/vovapolu/segments2mytarget/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vovapolu/segments2mytarget/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vovapolu/segments2mytarget/git/refs{/sha}","trees_url":"https://api.github.com/repos/vovapolu/segments2mytarget/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vovapolu/segments2mytarget/statuses/{sha}","languages_url":"https://api.github.com/repos/vovapolu/segments2mytarget/languages","stargazers_url":"https://api.github.com/repos/vovapolu/segments2mytarget/stargazers","contributors_url":"https://api.github.com/repos/vovapolu/segments2mytarget/contributors","subscribers_url":"https://api.github.com/repos/vovapolu/segments2mytarget/subscribers","subscription_url":"https://api.github.com/repos/vovapolu/segments2mytarget/subscription","commits_url":"https://api.github.com/repos/vovapolu/segments2mytarget/commits{/sha}","git_commits_url":"https://api.github.com/repos/vovapolu/segments2mytarget/git/commits{/sha}","comments_url":"https://api.github.com/repos/vovapolu/segments2mytarget/comments{/number}","issue_comment_url":"https://api.github.com/repos/vovapolu/segments2mytarget/issues/comments{/number}","contents_url":"https://api.github.com/repos/vovapolu/segments2mytarget/contents/{+path}","compare_url":"https://api.github.com/repos/vovapolu/segments2mytarget/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vovapolu/segments2mytarget/merges","archive_url":"https://api.github.com/repos/vovapolu/segments2mytarget/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vovapolu/segments2mytarget/downloads","issues_url":"https://api.github.com/repos/vovapolu/segments2mytarget/issues{/number}","pulls_url":"https://api.github.com/repos/vovapolu/segments2mytarget/pulls{/number}","milestones_url":"https://api.github.com/repos/vovapolu/segments2mytarget/milestones{/number}","notifications_url":"https://api.github.com/repos/vovapolu/segments2mytarget/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vovapolu/segments2mytarget/labels{/name}","releases_url":"https://api.github.com/repos/vovapolu/segments2mytarget/releases{/id}","created_at":"2015-08-24T12:04:38Z","updated_at":"2015-08-24T12:04:38Z","pushed_at":"2015-08-26T14:05:06Z","git_url":"git://github.com/vovapolu/segments2mytarget.git","ssh_url":"git@github.com:vovapolu/segments2mytarget.git","clone_url":"https://github.com/vovapolu/segments2mytarget.git","svn_url":"https://github.com/vovapolu/segments2mytarget","homepage":null,"size":128,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"DataCentricAlliance:master","ref":"master","sha":"fecbcf71184edc4ff8b9c8120d5d2ebb348087aa","user":{"login":"DataCentricAlliance","id":8556303,"avatar_url":"https://avatars.githubusercontent.com/u/8556303?v=3","gravatar_id":"","url":"https://api.github.com/users/DataCentricAlliance","html_url":"https://github.com/DataCentricAlliance","followers_url":"https://api.github.com/users/DataCentricAlliance/followers","following_url":"https://api.github.com/users/DataCentricAlliance/following{/other_user}","gists_url":"https://api.github.com/users/DataCentricAlliance/gists{/gist_id}","starred_url":"https://api.github.com/users/DataCentricAlliance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataCentricAlliance/subscriptions","organizations_url":"https://api.github.com/users/DataCentricAlliance/orgs","repos_url":"https://api.github.com/users/DataCentricAlliance/repos","events_url":"https://api.github.com/users/DataCentricAlliance/events{/privacy}","received_events_url":"https://api.github.com/users/DataCentricAlliance/received_events","type":"Organization","site_admin":false},"repo":{"id":34379298,"name":"segments2mytarget","full_name":"DataCentricAlliance/segments2mytarget","owner":{"login":"DataCentricAlliance","id":8556303,"avatar_url":"https://avatars.githubusercontent.com/u/8556303?v=3","gravatar_id":"","url":"https://api.github.com/users/DataCentricAlliance","html_url":"https://github.com/DataCentricAlliance","followers_url":"https://api.github.com/users/DataCentricAlliance/followers","following_url":"https://api.github.com/users/DataCentricAlliance/following{/other_user}","gists_url":"https://api.github.com/users/DataCentricAlliance/gists{/gist_id}","starred_url":"https://api.github.com/users/DataCentricAlliance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataCentricAlliance/subscriptions","organizations_url":"https://api.github.com/users/DataCentricAlliance/orgs","repos_url":"https://api.github.com/users/DataCentricAlliance/repos","events_url":"https://api.github.com/users/DataCentricAlliance/events{/privacy}","received_events_url":"https://api.github.com/users/DataCentricAlliance/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DataCentricAlliance/segments2mytarget","description":"Upload FACETz DMP segments to myTarget.com","fork":false,"url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget","forks_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/forks","keys_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/teams","hooks_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/hooks","issue_events_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/issues/events{/number}","events_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/events","assignees_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/assignees{/user}","branches_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/branches{/branch}","tags_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/tags","blobs_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/git/refs{/sha}","trees_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/statuses/{sha}","languages_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/languages","stargazers_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/stargazers","contributors_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/contributors","subscribers_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/subscribers","subscription_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/subscription","commits_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/commits{/sha}","git_commits_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/git/commits{/sha}","comments_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/comments{/number}","issue_comment_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/issues/comments{/number}","contents_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/contents/{+path}","compare_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/merges","archive_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/downloads","issues_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/issues{/number}","pulls_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/pulls{/number}","milestones_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/milestones{/number}","notifications_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/labels{/name}","releases_url":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/releases{/id}","created_at":"2015-04-22T08:45:30Z","updated_at":"2015-04-22T16:25:02Z","pushed_at":"2015-08-26T14:07:33Z","git_url":"git://github.com/DataCentricAlliance/segments2mytarget.git","ssh_url":"git@github.com:DataCentricAlliance/segments2mytarget.git","clone_url":"https://github.com/DataCentricAlliance/segments2mytarget.git","svn_url":"https://github.com/DataCentricAlliance/segments2mytarget","homepage":null,"size":214,"stargazers_count":6,"watchers_count":6,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/pulls/6"},"html":{"href":"https://github.com/DataCentricAlliance/segments2mytarget/pull/6"},"issue":{"href":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/issues/6"},"comments":{"href":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/DataCentricAlliance/segments2mytarget/statuses/a3e553d1fb874202c8545033ebbf19dbdd919f21"}}}}