Exemplo n.º 1
0
 /// <summary>
 /// UpdateAsync
 /// </summary>
 /// <param name="oauthClientId"></param>
 /// <param name="request"></param>
 /// <returns></returns>
 public async Task <OAuthClientResponse> UpdateAsync(string oauthClientId, OAuthClientsRequest request)
 {
     return(await PatchAsync <OAuthClientsRequest, OAuthClientResponse>($"/oauth-clients/{oauthClientId}", request).ConfigureAwait(false));
 }
Exemplo n.º 2
0
 /// <summary>
 /// CreateAsync
 /// </summary>
 /// <param name="organizationName"></param>
 /// <param name="request"></param>
 /// <returns></returns>
 public async Task <OAuthClientResponse> CreateAsync(string organizationName, OAuthClientsRequest request)
 {
     return(await PostAsync <OAuthClientsRequest, OAuthClientResponse>($"organizations/{organizationName}/oauth-clients", request).ConfigureAwait(false));
 }