I’m trying to call the Post Raid endpoint with my Postman it works fine. But with my code it doesn’t work. I don’t get an exception and also not error it just stops with code 0. At the PostAsync line.
I’m not sure what i do wrong the oauth2.0 is with the channel:manage:raids scope. Does Postman do something else that my C# code. Do i need to do something with the Raid Channel Event?
string url = "https://api.twitch.tv/helix/raids?from_broadcaster_id=187244607&to_broadcaster_id=132484755"; HttpClient client = new(); client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", setting.oauth); client.DefaultRequestHeaders.Add("Client-Id", setting.ClientID); HttpResponseMessage res = await client.PostAsync(url, null); res.EnsureSuccessStatusCode();