Skip to content

Instantly share code, notes, and snippets.

@IntuitDeveloperRelations
Last active December 15, 2015 10:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IntuitDeveloperRelations/5246648 to your computer and use it in GitHub Desktop.
Save IntuitDeveloperRelations/5246648 to your computer and use it in GitHub Desktop.
IPP .NET DevKit v2 - QBD - Add Customer with Name #DotNetDevKitV2 #Customer #QBD
// #DotNetDevKitV2 #Customer #QBD
//Simple routine to add QBD customer
//Documentation: http://goo.gl/XGNz4
var oauthValidator = new OAuthRequestValidator(accessToken, accessTokenSecret, consumerKey,consumerSecret);
var context = new ServiceContext(oauthValidator, realmId, IntuitServicesType.QBD);
var commonService = new DataServices(context);
var cust = new Intuit.Ipp.Data.Qbd.Customer()
{
Name = "John Smith",
};
var custResponse = commonService.Add(cust);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment