예제 #1
0
 public void RequestSessionToken()
 {
     var repo = new TokenRepository();
     var result = repo.RequestSessionToken(new Token
     {
         CurrentUserId = "ec9bf096-c505-4bef-87f6-18822b9dbf2c",
         Amount = "$100.00",
         ExternalItemId = "b3b4d024-a6de-4b04-9f8d-6545eef3b28f",
         ExternalBuyerId = "fdf58725-96bd-4bf8-b5e6-9b61be20662e",
         ExternalSellerId = "ec9bf096-c505-4bef-87f6-18822b9dbf2c",
         BuyerEmail = "*****@*****.**",
         SellerEmail = "*****@*****.**",
         BuyerCountry = "AUS",
         SellerCountry = "AUS",
         BuyerFirstName = "Preved",
         SellerFirstName = "Medved",
         ItemName = "Bear"
     });
 }
예제 #2
0
 public void Widget()
 {
     var repo = new TokenRepository();
     var widget = repo.GetWidget("aaa-bbb-cc");
 }
예제 #3
0
 public void RequestToken()
 {
     var repo = new TokenRepository();
     var token = repo.RequestToken();
 }
예제 #4
0
 public void RequestToken()
 {
     var repo = new TokenRepository(new RestClient());
     var token = repo.RequestToken();
 }