[GH-ISSUE #74] Yelp example #47

Closed
opened 2026-03-03 16:45:10 +03:00 by kerem · 2 comments
Owner

Originally created by @derrickshowers on GitHub (Jun 6, 2015).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/74

Is there any way to add an example for how this can be used for Yelp? Seems that their API is different from others because the token is already provided and therefore there is not an endpoint available to retrieve the token. I'm hoping there is a way with your framework to manually provide the token?

Originally created by @derrickshowers on GitHub (Jun 6, 2015). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/74 Is there any way to add an example for how this can be used for Yelp? Seems that [their API](https://www.yelp.com/developers/documentation/v2/authentication) is different from others because the token is already provided and therefore there is not an endpoint available to retrieve the token. I'm hoping there is a way with your framework to manually provide the token?
kerem 2026-03-03 16:45:10 +03:00
Author
Owner

@derrickshowers commented on GitHub (Jun 6, 2015):

Submitted a pull request for this.

<!-- gh-comment-id:109643528 --> @derrickshowers commented on GitHub (Jun 6, 2015): Submitted a [pull request](https://github.com/dongri/OAuthSwift/pull/75) for this.
Author
Owner

@phimage commented on GitHub (Nov 9, 2015):

I will close this issue
I repost here my comment on PR

Instanciate the OAuthSwift object as usual
Then access, using getter , the client and the credential, then set the token & token secret from conf using property setter


 let oauth = OAuth1Swift (
...
 )

oauth.client.credential.oauth_token =  mytoken
oauth.client.credential.oauth_token_secret = mytoken_secret
oauth.client.credential.oauth_header_type = "oauth1" // just a fix because not initialized at init yet

<!-- gh-comment-id:155018225 --> @phimage commented on GitHub (Nov 9, 2015): I will close this issue I repost here my comment on PR Instanciate the OAuthSwift object as usual Then access, using getter , the client and the credential, then set the token & token secret from conf using property setter ``` swift let oauth = OAuth1Swift ( ... ) oauth.client.credential.oauth_token = mytoken oauth.client.credential.oauth_token_secret = mytoken_secret oauth.client.credential.oauth_header_type = "oauth1" // just a fix because not initialized at init yet ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/OAuthSwift#47
No description provided.