예제 #1
0
        private async void btnGet_Click(object sender, RoutedEventArgs e)
        {
            if(String.IsNullOrEmpty(tbAccountSid.Text) || String.IsNullOrEmpty(tbAuthToken.Text))
            {
                var info = new MessageDialog("Account sid and Auth token are required fields!");
                await info.ShowAsync();

                return;
            }

            var telapi = new TelAPIRestClient(tbAccountSid.Text, tbAuthToken.Text);
            var messages = await telapi.GetSmsMessages();

            this.DataContext = messages.SmsMessages;
        }
 public TranscriptionService()
 {
     Client = new TelAPIRestClient(Settings.TelApiAccountId, Settings.TelApiToken);
 }
예제 #3
0
 public TelAPIBaseTest()
 {
     this.Client = new TelAPIRestClient(AccountSid, AuthToken);
 }