예제 #1
0
 public Task <Secret> CreateApiSecretAsync(CreateSecretRequest request, string apiKey, Credentials creds = null)
 {
     return(ApiRequest.DoRequestWithJsonContentAsync <Secret>(
                "POST",
                ApiRequest.GetBaseUri(ApiRequest.UriType.Api, $"/accounts/{apiKey}/secrets"),
                request,
                ApiRequest.AuthType.Basic,
                creds: creds ?? Credentials
                ));
 }
예제 #2
0
 public Secret CreateApiSecret(CreateSecretRequest request, string apiKey = null, Credentials creds = null)
 {
     return(CreateApiSecretAsync(request, apiKey, creds).GetAwaiter().GetResult());
 }