mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #13] Example of one API call for each service #5
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#5
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 @sumitk1 on GitHub (Dec 29, 2014).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/13
Hey @dongri. Awesome job making this example!
Can you include an example of one api call for each service?
e.g.
When I do the above for linkedIn I am getting Failure in the following function:
@dongri commented on GitHub (Dec 30, 2014):
Hello @sumitk1
Added Linkedin Example
github.com/dongri/OAuthSwift@1eba2851d6Using NSXMLParser if need...
@sumitk1 commented on GitHub (Jan 2, 2015):
Hi @dongri this worked like a charm. Thanks for the help! I am using NSXMLParser for this as well.
@realin commented on GitHub (Apr 8, 2016):
Hello @dongri
Can you guide me here, what i am doing wrong here.
`let oauthswift = OAuth1Swift(
consumerKey: "myKeyHere",
consumerSecret: "mySecretHere",
requestTokenUrl: "http://sitename/wc-api/v2/products",
authorizeUrl: "http://sitename/wc-api/v2/products",
accessTokenUrl: "http://sitename/wc-api/v2/products"
)
//oauthswift.authorize_url_handler = get_url_handler()
oauthswift.authorizeWithCallbackURL( NSURL(string: "sitename/wc-api/v2/products")!, success: {
credential, response, parameters in
// self.showTokenAlert(serviceParameters["name"], credential: credential)
self.testOauth(oauthswift)
}, failure: { error in
print(error.localizedDescription)
}
)
I cannot get the data in jsonDict. It gives me this error:
HTTP Status 404: Not Found, Response:
{"errors":[{"code":"woocommerce_api_authentication_error","message":"oauth_consumer_key parameter is missing"}]}
Can you help me here.
Thanks
@phimage commented on GitHub (Apr 8, 2016):
Your callback URL into authorizeWithCallbackURL is wrong and others also in init...
Why commenting an Old closed issue
@phimage commented on GitHub (Apr 8, 2016):
Look into woocommerce oauth API to find the good urls
@realin commented on GitHub (Apr 8, 2016):
@phimage Can you guide me here, what should be the correct code?
@phimage commented on GitHub (Apr 8, 2016):
Did you read my message, go to oauth Doc of woocommerce... I can help but not work for you, try by yourself...