Added Nightbot integration. Changed from client credentials flow to implicit code grant flow.
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
using System.Net.Http.Formatting;
|
||||
using System.Net.Http.Json;
|
||||
using System.Text.Json;
|
||||
|
||||
@ -44,6 +45,11 @@ namespace TwitchChatTTS.Helpers
|
||||
return await _client.PostAsJsonAsync(uri, new object(), Options);
|
||||
}
|
||||
|
||||
public async Task<HttpResponseMessage> Put<T>(string uri, T data)
|
||||
{
|
||||
return await _client.PutAsJsonAsync(uri, data, Options);
|
||||
}
|
||||
|
||||
public async Task<T?> Delete<T>(string uri)
|
||||
{
|
||||
return await _client.DeleteFromJsonAsync<T>(uri, Options);
|
||||
|
Reference in New Issue
Block a user