{"action":"created","issue":{"url":"https://api.github.com/repos/dongri/OAuthSwift/issues/114","labels_url":"https://api.github.com/repos/dongri/OAuthSwift/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/dongri/OAuthSwift/issues/114/comments","events_url":"https://api.github.com/repos/dongri/OAuthSwift/issues/114/events","html_url":"https://github.com/dongri/OAuthSwift/pull/114","id":108535231,"number":114,"title":"Allow to use OAuthSwift with custom network call or other network API","user":{"login":"phimage","id":8875768,"avatar_url":"https://avatars.githubusercontent.com/u/8875768?v=3","gravatar_id":"","url":"https://api.github.com/users/phimage","html_url":"https://github.com/phimage","followers_url":"https://api.github.com/users/phimage/followers","following_url":"https://api.github.com/users/phimage/following{/other_user}","gists_url":"https://api.github.com/users/phimage/gists{/gist_id}","starred_url":"https://api.github.com/users/phimage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phimage/subscriptions","organizations_url":"https://api.github.com/users/phimage/orgs","repos_url":"https://api.github.com/users/phimage/repos","events_url":"https://api.github.com/users/phimage/events{/privacy}","received_events_url":"https://api.github.com/users/phimage/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-27T13:35:30Z","updated_at":"2015-09-29T14:24:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dongri/OAuthSwift/pulls/114","html_url":"https://github.com/dongri/OAuthSwift/pull/114","diff_url":"https://github.com/dongri/OAuthSwift/pull/114.diff","patch_url":"https://github.com/dongri/OAuthSwift/pull/114.patch"},"body":"- Factorising method to create `OAuthSwiftHTTPRequest`\r\n- Move method about credential into `OAuthSwiftCredential` instead of `OAuthSwiftClient`\r\n- Extract method to create headers from credential\r\n- Add method to create `NSMutableURLRequest` from `OAuthSwiftHTTPRequest` (just calling the static one)\r\n\r\nI have just extracting and moving codes, no change\r\n\r\nWith this public methods its now easy to create a custom `NSMutableURLRequest` with headers from credential, or just get the one created by this api\r\n\r\nWe can for instance use Alamofire like that\r\n```swift\r\n extension OAuthSwiftHTTPRequest : URLRequestConvertible {\r\n\r\npublic var URLRequest: NSMutableURLRequest {\r\n        return try! self.makeRequest()\r\n}\r\n```\r\nor just by adding headers as parameter of `request` Alamofire function using `makeHeaders`new function from `OAuthSwiftCredential`"},"comment":{"url":"https://api.github.com/repos/dongri/OAuthSwift/issues/comments/144076174","html_url":"https://github.com/dongri/OAuthSwift/pull/114#issuecomment-144076174","issue_url":"https://api.github.com/repos/dongri/OAuthSwift/issues/114","id":144076174,"user":{"login":"phimage","id":8875768,"avatar_url":"https://avatars.githubusercontent.com/u/8875768?v=3","gravatar_id":"","url":"https://api.github.com/users/phimage","html_url":"https://github.com/phimage","followers_url":"https://api.github.com/users/phimage/followers","following_url":"https://api.github.com/users/phimage/following{/other_user}","gists_url":"https://api.github.com/users/phimage/gists{/gist_id}","starred_url":"https://api.github.com/users/phimage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phimage/subscriptions","organizations_url":"https://api.github.com/users/phimage/orgs","repos_url":"https://api.github.com/users/phimage/repos","events_url":"https://api.github.com/users/phimage/events{/privacy}","received_events_url":"https://api.github.com/users/phimage/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T14:24:33Z","updated_at":"2015-09-29T14:24:33Z","body":"Fix conflict with c6cea89e66c101dccd20dced608b7f9625d36c36 (I have done the same thing on makeRequest and add one function near that, that's why conflict existed)"}}