public TopupOperations( IReloadlyHttpClient httpClient, Uri baseUri, string accessToken, ReloadlyEnvironment environment) : base(httpClient, baseUri, accessToken, environment) { }
public TopupOperations( IReloadlyHttpClient httpClient, Uri baseUri, string clientId, string clientSecret, ReloadlyEnvironment environment) : base(httpClient, baseUri, clientId, clientSecret, environment) { }
public BaseOperation( IReloadlyHttpClient httpClient, Uri baseUri, ReloadlyEnvironment environment) { HttpClient = httpClient; BaseUri = baseUri; Environment = environment; }
protected BaseAirtimeOperation( IReloadlyHttpClient httpClient, Uri baseUri, string accessToken, ReloadlyEnvironment environment) : base(httpClient, baseUri, environment) { Debug.Assert(!string.IsNullOrWhiteSpace(accessToken)); AccessToken = accessToken; _cacheAccessToken = true; }
public AirtimeApi( IHttpClientFactory httpClientFactory, string accessToken, ReloadlyEnvironment environment, bool disableTelemetry = false) : base(accessToken) { _httpClient = new ReloadlyHttpClient(httpClientFactory, ReloadlyApiVersion.AirtimeV1, disableTelemetry); _environment = environment; _baseUrl = CreateBaseUrl(); }
protected BaseAirtimeOperation( IReloadlyHttpClient httpClient, Uri baseUri, string clientId, string clientSecret, ReloadlyEnvironment environment) : base(httpClient, baseUri, environment) { Debug.Assert(!string.IsNullOrWhiteSpace(clientId)); Debug.Assert(!string.IsNullOrWhiteSpace(clientSecret)); ClientId = clientId; ClientSecret = clientSecret; }
public OAuth2Operation( IReloadlyHttpClient httpClient, Uri baseUri, string clientId, string clientSecret, ReloadlyService service) { if (string.IsNullOrWhiteSpace(clientId)) { throw new ArgumentNullException(nameof(clientId)); } if (string.IsNullOrWhiteSpace(clientSecret)) { throw new ArgumentNullException(nameof(clientSecret)); } _httpClient = httpClient; _baseUri = baseUri; _clientId = clientId; _service = service; _clientSecret = clientSecret; }
public AuthenticationApi( IHttpClientFactory httpClientFactory, string clientId, string clientSecret, ReloadlyService service) { if (string.IsNullOrWhiteSpace(clientId)) { throw new ArgumentNullException(nameof(clientId)); } if (string.IsNullOrWhiteSpace(clientSecret)) { throw new ArgumentNullException(nameof(clientSecret)); } _httpClient = new ReloadlyHttpClient(httpClientFactory, ReloadlyApiVersion.AirtimeV1); _clientId = clientId; _clientSecret = clientSecret; _service = service; }
public BaseOperationImpl(IReloadlyHttpClient httpClient, Uri baseUri, ReloadlyEnvironment environment) : base(httpClient, baseUri, environment) { }