Пример #1
0
        public async Task <VaultResponse> Get(string vaultToken)
        {
            vaultToken = Uri.EscapeUriString(vaultToken);
            var url = "vault/payment_sources/" + vaultToken;

            return(await _serviceHelper.Get <VaultResponse>(url, overrideConfigSecretKey : _overrideConfigSecretKey));
        }
Пример #2
0
 public async Task <ChargeItemsResponse> Get()
 {
     return(await _serviceHelper.Get <ChargeItemsResponse>("charges", overrideConfigSecretKey : _overrideConfigSecretKey));
 }
Пример #3
0
        public async Task <string> GetSoundByName(string name)
        {
            var animal = await _serviceHelper.Get <Animal>("vigilant-chainsaw-animal", name);

            return(animal != null ? animal.Sound : string.Empty);
        }
Пример #4
0
 public async Task <NotificationTemplateResponse> GetTemplate(string notificationTemplateId)
 {
     notificationTemplateId = Uri.EscapeUriString(notificationTemplateId);
     return(await _serviceHelper.Get <NotificationTemplateResponse>("notifications/templates/" + notificationTemplateId, overrideConfigSecretKey : _overrideConfigSecretKey));
 }
Пример #5
0
 public async Task <GatewayItemResponse> Get(string gatewayid)
 {
     gatewayid = Uri.EscapeUriString(gatewayid);
     return(await _serviceHelper.Get <GatewayItemResponse>("gateways/" + gatewayid, overrideConfigSecretKey : _overrideConfigSecretKey));
 }
Пример #6
0
 public async Task <SubscriptionItemsResponse> Get()
 {
     return(await _serviceHelper.Get <SubscriptionItemsResponse>("subscriptions", overrideConfigSecretKey : _overrideConfigSecretKey));
 }