mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 20:55:57 +03:00
[PR #114] [MERGED] Allow to use OAuthSwift with custom network call or other network API #524
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#524
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/OAuthSwift/OAuthSwift/pull/114
Author: @phimage
Created: 9/27/2015
Status: ✅ Merged
Merged: 10/4/2015
Merged by: @dongri
Base:
master← Head:cleaning-client📝 Commits (2)
87aa075Allow to use OAuthSwift with custom network call or other network API2d0a3a3Merge branch 'master' into cleaning-client📊 Changes
3 files changed (+111 additions, -100 deletions)
View changed files
📝
OAuthSwift/OAuthSwiftClient.swift(+30 -99)📝
OAuthSwift/OAuthSwiftCredential.swift(+76 -0)📝
OAuthSwift/OAuthSwiftHTTPRequest.swift(+5 -1)📄 Description
OAuthSwiftHTTPRequestOAuthSwiftCredentialinstead ofOAuthSwiftClientNSMutableURLRequestfromOAuthSwiftHTTPRequest(just calling the static one)I have just extracting and moving codes, no change
With this public methods its now easy to create a custom
NSMutableURLRequestwith headers from credential, or just get the one created by this apiWe can for instance use Alamofire like that
or just by adding headers as parameter of
requestAlamofire function usingmakeHeadersnew function fromOAuthSwiftCredential🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.