Last active
December 15, 2015 10:38
-
-
Save IntuitDeveloperRelations/5246648 to your computer and use it in GitHub Desktop.
IPP .NET DevKit v2 - QBD - Add Customer with Name #DotNetDevKitV2 #Customer #QBD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// #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