{"action":"opened","number":88,"pull_request":{"url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/pulls/88","id":28931180,"html_url":"https://github.com/AFNetworking/AFOAuth2Manager/pull/88","diff_url":"https://github.com/AFNetworking/AFOAuth2Manager/pull/88.diff","patch_url":"https://github.com/AFNetworking/AFOAuth2Manager/pull/88.patch","issue_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/issues/88","number":88,"state":"open","locked":false,"title":"Added return of current AFHTTPRequestOperation","user":{"login":"ldrr","id":580463,"avatar_url":"https://avatars.githubusercontent.com/u/580463?v=3","gravatar_id":"","url":"https://api.github.com/users/ldrr","html_url":"https://github.com/ldrr","followers_url":"https://api.github.com/users/ldrr/followers","following_url":"https://api.github.com/users/ldrr/following{/other_user}","gists_url":"https://api.github.com/users/ldrr/gists{/gist_id}","starred_url":"https://api.github.com/users/ldrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldrr/subscriptions","organizations_url":"https://api.github.com/users/ldrr/orgs","repos_url":"https://api.github.com/users/ldrr/repos","events_url":"https://api.github.com/users/ldrr/events{/privacy}","received_events_url":"https://api.github.com/users/ldrr/received_events","type":"User","site_admin":false},"body":"I changed the definition of all `authenticateUsingOAuthWithURLString`-Methods to make sure they return their current `AFHTTPRequestOperation`.\r\n\r\nIn my opinion this can be useful when using NSOperation dependencies.\r\n\r\nIn my current project every HTTP call is made like this:\r\n\r\n1) Check if there is a required authorization\r\n2) If there is one check their current state\r\n3) If new authentication is needed or token has to be refreshed before the next call is made then create a new `AFHTTPRequestOperation` for OAuth authentication\r\n4) Create the primary request with all its parameters, etc. Set the request from 3) as the dependent `NSOperation`\r\n","created_at":"2015-02-09T15:50:48Z","updated_at":"2015-02-09T15:50:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/pulls/88/commits","review_comments_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/pulls/88/comments","review_comment_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/pulls/comments/{number}","comments_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/issues/88/comments","statuses_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/statuses/8c8c5de1914a5eeb165852c6915b878e58772426","head":{"label":"ldrr:master","ref":"master","sha":"8c8c5de1914a5eeb165852c6915b878e58772426","user":{"login":"ldrr","id":580463,"avatar_url":"https://avatars.githubusercontent.com/u/580463?v=3","gravatar_id":"","url":"https://api.github.com/users/ldrr","html_url":"https://github.com/ldrr","followers_url":"https://api.github.com/users/ldrr/followers","following_url":"https://api.github.com/users/ldrr/following{/other_user}","gists_url":"https://api.github.com/users/ldrr/gists{/gist_id}","starred_url":"https://api.github.com/users/ldrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldrr/subscriptions","organizations_url":"https://api.github.com/users/ldrr/orgs","repos_url":"https://api.github.com/users/ldrr/repos","events_url":"https://api.github.com/users/ldrr/events{/privacy}","received_events_url":"https://api.github.com/users/ldrr/received_events","type":"User","site_admin":false},"repo":{"id":30542957,"name":"AFOAuth2Manager","full_name":"ldrr/AFOAuth2Manager","owner":{"login":"ldrr","id":580463,"avatar_url":"https://avatars.githubusercontent.com/u/580463?v=3","gravatar_id":"","url":"https://api.github.com/users/ldrr","html_url":"https://github.com/ldrr","followers_url":"https://api.github.com/users/ldrr/followers","following_url":"https://api.github.com/users/ldrr/following{/other_user}","gists_url":"https://api.github.com/users/ldrr/gists{/gist_id}","starred_url":"https://api.github.com/users/ldrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldrr/subscriptions","organizations_url":"https://api.github.com/users/ldrr/orgs","repos_url":"https://api.github.com/users/ldrr/repos","events_url":"https://api.github.com/users/ldrr/events{/privacy}","received_events_url":"https://api.github.com/users/ldrr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ldrr/AFOAuth2Manager","description":"AFNetworking Extension for OAuth 2 Authentication","fork":true,"url":"https://api.github.com/repos/ldrr/AFOAuth2Manager","forks_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/forks","keys_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/teams","hooks_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/hooks","issue_events_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/issues/events{/number}","events_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/events","assignees_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/assignees{/user}","branches_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/branches{/branch}","tags_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/tags","blobs_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/statuses/{sha}","languages_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/languages","stargazers_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/stargazers","contributors_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/contributors","subscribers_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/subscribers","subscription_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/subscription","commits_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/issues/comments/{number}","contents_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/contents/{+path}","compare_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/merges","archive_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/downloads","issues_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/issues{/number}","pulls_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/pulls{/number}","milestones_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/milestones{/number}","notifications_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/labels{/name}","releases_url":"https://api.github.com/repos/ldrr/AFOAuth2Manager/releases{/id}","created_at":"2015-02-09T15:36:55Z","updated_at":"2015-02-09T15:43:38Z","pushed_at":"2015-02-09T15:43:37Z","git_url":"git://github.com/ldrr/AFOAuth2Manager.git","ssh_url":"git@github.com:ldrr/AFOAuth2Manager.git","clone_url":"https://github.com/ldrr/AFOAuth2Manager.git","svn_url":"https://github.com/ldrr/AFOAuth2Manager","homepage":"","size":713,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"AFNetworking:master","ref":"master","sha":"5ab481d01d1df32fdd23d5038d9fd23223d814eb","user":{"login":"AFNetworking","id":1181541,"avatar_url":"https://avatars.githubusercontent.com/u/1181541?v=3","gravatar_id":"","url":"https://api.github.com/users/AFNetworking","html_url":"https://github.com/AFNetworking","followers_url":"https://api.github.com/users/AFNetworking/followers","following_url":"https://api.github.com/users/AFNetworking/following{/other_user}","gists_url":"https://api.github.com/users/AFNetworking/gists{/gist_id}","starred_url":"https://api.github.com/users/AFNetworking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AFNetworking/subscriptions","organizations_url":"https://api.github.com/users/AFNetworking/orgs","repos_url":"https://api.github.com/users/AFNetworking/repos","events_url":"https://api.github.com/users/AFNetworking/events{/privacy}","received_events_url":"https://api.github.com/users/AFNetworking/received_events","type":"Organization","site_admin":false},"repo":{"id":2926712,"name":"AFOAuth2Manager","full_name":"AFNetworking/AFOAuth2Manager","owner":{"login":"AFNetworking","id":1181541,"avatar_url":"https://avatars.githubusercontent.com/u/1181541?v=3","gravatar_id":"","url":"https://api.github.com/users/AFNetworking","html_url":"https://github.com/AFNetworking","followers_url":"https://api.github.com/users/AFNetworking/followers","following_url":"https://api.github.com/users/AFNetworking/following{/other_user}","gists_url":"https://api.github.com/users/AFNetworking/gists{/gist_id}","starred_url":"https://api.github.com/users/AFNetworking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AFNetworking/subscriptions","organizations_url":"https://api.github.com/users/AFNetworking/orgs","repos_url":"https://api.github.com/users/AFNetworking/repos","events_url":"https://api.github.com/users/AFNetworking/events{/privacy}","received_events_url":"https://api.github.com/users/AFNetworking/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AFNetworking/AFOAuth2Manager","description":"AFNetworking Extension for OAuth 2 Authentication","fork":false,"url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager","forks_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/forks","keys_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/teams","hooks_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/hooks","issue_events_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/issues/events{/number}","events_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/events","assignees_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/assignees{/user}","branches_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/branches{/branch}","tags_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/tags","blobs_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/statuses/{sha}","languages_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/languages","stargazers_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/stargazers","contributors_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/contributors","subscribers_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/subscribers","subscription_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/subscription","commits_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/issues/comments/{number}","contents_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/contents/{+path}","compare_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/merges","archive_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/downloads","issues_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/issues{/number}","pulls_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/pulls{/number}","milestones_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/milestones{/number}","notifications_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/labels{/name}","releases_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/releases{/id}","created_at":"2011-12-06T18:02:23Z","updated_at":"2015-02-09T15:38:48Z","pushed_at":"2014-11-24T03:14:42Z","git_url":"git://github.com/AFNetworking/AFOAuth2Manager.git","ssh_url":"git@github.com:AFNetworking/AFOAuth2Manager.git","clone_url":"https://github.com/AFNetworking/AFOAuth2Manager.git","svn_url":"https://github.com/AFNetworking/AFOAuth2Manager","homepage":"","size":713,"stargazers_count":796,"watchers_count":796,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":236,"mirror_url":null,"open_issues_count":9,"forks":236,"open_issues":9,"watchers":796,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/pulls/88"},"html":{"href":"https://github.com/AFNetworking/AFOAuth2Manager/pull/88"},"issue":{"href":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/issues/88"},"comments":{"href":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/issues/88/comments"},"review_comments":{"href":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/pulls/88/comments"},"review_comment":{"href":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/pulls/88/commits"},"statuses":{"href":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/statuses/8c8c5de1914a5eeb165852c6915b878e58772426"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":17,"deletions":15,"changed_files":2}}