Skip to content

Commit ade2d37

Browse files
author
Ethan Fan
committed
add twitch test to get user info
1 parent 9abd7ac commit ade2d37

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Demo/Common/ViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1380,7 +1380,7 @@ extension ViewController {
13801380

13811381
func testTwitch(_ oauthswift: OAuth2Swift, _ oauthToken: String) {
13821382
let _ = oauthswift.client.get(
1383-
"https://api.twitch.tv/helix/user") { result in
1383+
"https://api.twitch.tv/kraken/user?oauth_token=\(oauthToken)", headers: ["Accept":"application/vnd.twitchtv.v5+json"]) { result in
13841384
switch result {
13851385
case .success(let response):
13861386
let dataString = response.string!

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Swift based OAuth library for iOS and macOS.
88

99
## Support OAuth1.0, OAuth2.0
1010

11-
Twitter, Flickr, Github, Instagram, Foursquare, Fitbit, Withings, Linkedin, Dropbox, Dribbble, Salesforce, BitBucket, GoogleDrive, Smugmug, Intuit, Zaim, Tumblr, Slack, Uber, Gitter, Facebook, Spotify, Typetalk, SoundCloud, etc
11+
Twitter, Flickr, Github, Instagram, Foursquare, Fitbit, Withings, Linkedin, Dropbox, Dribbble, Salesforce, BitBucket, GoogleDrive, Smugmug, Intuit, Zaim, Tumblr, Slack, Uber, Gitter, Facebook, Spotify, Typetalk, SoundCloud, Twitch, etc
1212

1313
## Installation
1414

0 commit comments

Comments
 (0)