Ejemplo n.º 1
0
        public async Task TestCreateApiAccount()
        {
            var reader = CreateApiReader("accounts");

            reader.ApiKey = YOURAPIKEY_FULLACCESS;
            var accObj = new ApiAccount
            {
                Name = "CreatedFromAPI"
            };
            await reader.Post(accObj);
        }
Ejemplo n.º 2
0
        public async void UpdateAccountDescription()
        {
            var reader = CreateApiReader("accounts");

            reader.ApiKey = YOURAPIKEY_FULLACCESS;
            var accObj = new ApiAccount
            {
                AccountId   = this.TestAccountId,
                Description = "Updated from API"
            };
            await reader.Put(accObj);
        }