ExecuteAsync() 공개 메소드

public ExecuteAsync ( ) : Task
리턴 Task
예제 #1
0
        public async Task <string> GenerateAsync()
        {
            var request = new PagarMeRequest(_service, "GET", "/transactions/card_hash_key");

            request.UseEncryptionKey = true;

            var response = await request.ExecuteAsync();

            var key = JsonHelper.Deserialize <CardHashKey>(_service, response.Body);

            return(Encrypt(key));
        }
예제 #2
0
        public async Task<string> GenerateAsync()
        {
            var request = new PagarMeRequest(_service, "GET", "/transactions/card_hash_key");

            request.UseEncryptionKey = true;

            var response = await request.ExecuteAsync();
            var key = JsonHelper.Deserialize<CardHashKey>(_service, response.Body);

            return Encrypt(key);
        }