GET https://api.twitch.tv/helix/channels/followers
Impossible to get the right “total” I do get the right answer but it’s 0 and I have 8 followers…
I did login and give authorisation to moderator:read:followers in scope then:
I do:
let url = URL(string: “https://api.twitch.tv/helix/channels/followers?broadcaster_id=\(userId ?? “”)/”)
let sessionConfig = URLSessionConfiguration.default
let session = URLSession(configuration: sessionConfig)
var request = URLRequest(url: url!)
request.httpMethod = “GET”
request.addValue(“Bearer (accessToken)”, forHTTPHeaderField: “Authorization”)
request.addValue(ConsumerKey, forHTTPHeaderField: “Client-Id”)
request.addValue(“application/json”, forHTTPHeaderField: “Accept”)
To get:
{
“data” : [
],
“pagination” : {
},
“total” : 0
}
Which seams right but the total is wrong…