Exemplo n.º 1
0
 public static Account Retrieve(string accessToken, string clientSecret, string number)
 {
     return(ApiHelpers.TryWrap(() => CommunicationHelper.GetAccount(accessToken, clientSecret, number),
                               string.Format("Unable to get account with number '{0}'", number)));
 }
Exemplo n.º 2
0
 public static Accounts ListAll(string accessToken, string clientSecret)
 {
     return(ApiHelpers.TryWrap(() => CommunicationHelper.GetAllAccounts(accessToken, clientSecret),
                               "Unable to get all accounts"));
 }