I made Drops Campaign.
HttpRequestMessage(new HttpMethod(“GET”), “https://api.twitch.tv/kraken/user”)
request.Headers.TryAddWithoutValidation(“Accept”, “application/vnd.twitchtv.v5+json”);
request.Headers.TryAddWithoutValidation(“Client-ID”, ClientId);
request.Headers.TryAddWithoutValidation(“Authorization”, $“OAuth {OAuthToken}”);
Success.
n VHS
HttpRequestMessage(new HttpMethod(“GET”), “https://api.twitch.tv/kraken/user/vhs”)
request.Headers.TryAddWithoutValidation(“Accept”, “application/vnd.twitchtv.v5+json”);
request.Headers.TryAddWithoutValidation(“Client-ID”, ClientId);
request.Headers.TryAddWithoutValidation(“Authorization”, $“OAuth {OAuthToken}”);
Success. n response identifier.
But.
HttpRequestMessage(new HttpMethod(“PUT”), “https://api.twitch.tv/kraken/user/vhs”)
request.Headers.TryAddWithoutValidation(“Accept”, “application/vnd.twitchtv.v5+json”);
request.Headers.TryAddWithoutValidation(“Authorization”, $“OAuth {OAuthToken}”);
request.Headers.TryAddWithoutValidation(“Client-ID”, ClientId);
request.Content = new StringContent("{“identifier”: “76561198112127937”}");
request.Content.Headers.ContentType = MediaTypeHeaderValue.Parse(“application/json”);
Fail. response 204. “No Content”
What I missing?.