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 )); }
public Secret CreateApiSecret(CreateSecretRequest request, string apiKey = null, Credentials creds = null) { return(CreateApiSecretAsync(request, apiKey, creds).GetAwaiter().GetResult()); }