mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 20:55:57 +03:00
[GH-ISSUE #560] How to sign a request with accessToken and accessTokenSecret to get twitter timeline. #367
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#367
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 @sanchgoel on GitHub (Nov 20, 2019).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/560
Description:
How to sign a request with accessToken and accessTokenSecret to get twitter timeline.
OAuth Provider? (Twitter, Github, ..):
Twitter
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
11.x (Swift 5.1)
10.x (Swift 5.0)
10.x (Swift 4.1)
9.3 (Swift 4.1)
9.0 (Swift 4.0)
other: (Please fill in the version you are using.)
objective c
I used oauth to get the accessToken of a user. Now i want to get the details of the user sometime later, how can we sign a request https://api.twitter.com/1.1/statuses/user_timeline.json with the accessToken received after sign in.
func getTimeLine() {
let oauthswift = OAuth1Swift(consumerKey: "foo",
consumerSecret: "bar")
// How to set accessToken in the oauthSwift instance in order to get response from the api successfully.
}
@phimage commented on GitHub (Nov 20, 2019):
no you are no authenticated with your code. You just create an instance of OAuth1Swift then make a request
please fix the markdown also in your issue
read the readme and see demo app