Advertisement
Guest User

DevKitAddCustomer

a guest
Mar 20th, 2012
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.76 KB | None | 0 0
  1. //Intuit.Ipp.Security exposes OAuthRequestValidator
  2. //IntuitAnywhere.utils exposes Initializer
  3. OAuthRequestValidator oauthValidator = Initializer.InitializeOAuthValidator(accessToken, accessTokenSecret, consumerKey, consumerSecret);
  4.  
  5. //Intuit.Ipp.Core exposes ServiceContext
  6. ServiceContext context = Initializer.InitializeServiceContext(oauthValidator, realmId, appToken, string.Empty, dataSourcetype);
  7.  
  8. //Intuit.Ipp.Services exposes DataServices
  9. DataServices commonService = new DataServices(context);
  10.                
  11. var cust = new Intuit.Ipp.Data.Qbd.Customer()
  12.                                         {
  13.                                             Name = "John Smith",
  14.                                         };
  15.  
  16. var custResponse = commonService.Add(cust);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement