mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 20:55:57 +03:00
[GH-ISSUE #365] Please help me, how to implement this Postman to OAuthSwift ?? #234
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#234
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?
Originally created by @fermendkis on GitHub (Apr 26, 2017).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/365
Description:
Sir, help me. i am really stuck make OAuth for my API.
so how to implement this Postman to OAuth Swift? please, tell me how code to OAuth get data my API like this picture
image removed
OAuth Provider (Twitter, Github, ..):
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
8.0 (Swift 3.0)
8.0 (Swift 2.3)
7.3.1
other: (Please fill in the version you are using.)
objective c
@phimage commented on GitHub (Apr 26, 2017):
do not put image with your secret informations....
I remove it
try, show your code
@fermendkis commented on GitHub (Apr 26, 2017):
no problem sir, my secret informations is safe. i just want ask how to implement this structure postman in code OAuthSwift. i'm really stuck sir.

@phimage commented on GitHub (Apr 26, 2017):
go to readme or demo and copy past
look for your provider doc for the url to use
@fermendkis commented on GitHub (Apr 26, 2017):
your readme not tell how to add Token Key, Token Secret sir.
@phimage commented on GitHub (Apr 26, 2017):
because that's not real oauth flow
oauth flow allow to obtains token key and secret
the oauth type could be changed to OAuth2?
if yes you do not need oauthSwift, just sign your request by adding a header to your HTTP request
else you can try this "Inject loaded token"
https://github.com/OAuthSwift/OAuthSwift/wiki/Store-credential
and just try to make request
@fermendkis commented on GitHub (Apr 27, 2017):
oke sir, i'll try.
but how about this? i build code like this to get data and i don't know how next step to add let credential into method get
@phimage commented on GitHub (Apr 27, 2017):
You must update the one in oauthswift.client
Then use client.get(..)
@fermendkis commented on GitHub (Apr 28, 2017):
can you give example sir??
@phimage commented on GitHub (Apr 28, 2017):
https://github.com/OAuthSwift/OAuthSwift#make-signed-request
say me if is not clear...
as altermative if you use alamofire you can try the adapter https://github.com/OAuthSwift/OAuthSwiftAlamofire
@fermendkis commented on GitHub (Apr 28, 2017):
i has been tried like this sir
it's work, i can get my API. but it's just manually im copas Method Signature from Postman. i don't know how to make automatic proccess.
sorry sri, i don't understand with your documentation signed request :(