[GH-ISSUE #360] OAuthSwiftCredential Parameter?? #231

Closed
opened 2026-03-03 16:46:52 +03:00 by kerem · 0 comments
Owner

Originally created by @megifernanda on GitHub (Apr 12, 2017).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/360

Description:

what is OAuthSwiftCredential Version in here code ?

`let url = NSURL(string: "https://conversation.8villages.com/1.0/contents/articles?state=published")

let a = OAuthSwiftClient(consumerKey: oauth_consumer_key, consumerSecret: oauth_consumer_secret, oauthToken: oauth_token, oauthTokenSecret: oauth_token_secret, version: .oauth1)

let credential = a.credential

let request = NSMutableURLRequest(url: url! as URL)

    request.httpMethod = "GET"
    let authorization = credential.authorizationHeader(method: .GET, url: url as! URL, parameters: OAuthSwift.Parameters)


    let headers = ["Authorization": authorization]`

i don't know what parameters to must i input here :

let authorization = credential.authorizationHeader(method: .GET, url: url as! URL, parameters: OAuthSwift.Parameters)

please help

OAuth Provider (Twitter, Github, ..):

OAuth Version:

  • Version 1
  • Version 2

OS (Please fill the version) :

  • iOS :
  • OSX :
  • TVOS :
  • WatchOS :

Installation method:

  • Carthage
  • CocoaPods
  • Manually

Library version:

  • head
  • v1.0.0
  • v0.6
  • other: (Please fill in the version you are using.)

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

Originally created by @megifernanda on GitHub (Apr 12, 2017). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/360 ### Description: what is OAuthSwiftCredential Version in here code ? `let url = NSURL(string: "https://conversation.8villages.com/1.0/contents/articles?state=published") let a = OAuthSwiftClient(consumerKey: oauth_consumer_key, consumerSecret: oauth_consumer_secret, oauthToken: oauth_token, oauthTokenSecret: oauth_token_secret, version: .oauth1) let credential = a.credential let request = NSMutableURLRequest(url: url! as URL) request.httpMethod = "GET" let authorization = credential.authorizationHeader(method: .GET, url: url as! URL, parameters: OAuthSwift.Parameters) let headers = ["Authorization": authorization]` i don't know what parameters to must i input here : ` let authorization = credential.authorizationHeader(method: .GET, url: url as! URL, parameters: OAuthSwift.Parameters)` please help ### OAuth Provider (Twitter, Github, ..): ### OAuth Version: - [x] Version 1 - [ ] Version 2 ### OS (Please fill the version) : - [x] iOS : - [ ] OSX : - [ ] TVOS : - [ ] WatchOS : ### Installation method: - [x] Carthage - [ ] CocoaPods - [ ] Manually ### Library version: - [ ] head - [ ] v1.0.0 - [ ] v0.6 - [x] other: (Please fill in the version you are using.) ### Xcode version: - [x] 8.0 (Swift 3.0) - [ ] 8.0 (Swift 2.3) - [ ] 7.3.1 - [ ] other: (Please fill in the version you are using.) - [ ] objective c
kerem 2026-03-03 16:46:52 +03:00
  • closed this issue
  • added the
    invalid
    label
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#231
No description provided.