View difference between Paste ID: 1NGL7vmV and s2QaTaGW
SHOW: | | - or go back to the newest paste.
1-
//Intuit.Ipp.Security exposes OAuthRequestValidator
1+
//Simple routine to add QBD customer
2-
//IntuitAnywhere.utils exposes Initializer
2+
//Documentation: http://goo.gl/XGNz4
3-
OAuthRequestValidator oauthValidator = Initializer.InitializeOAuthValidator(accessToken, accessTokenSecret, consumerKey, consumerSecret);
3+
4
var oauthValidator = new OAuthRequestValidator(accessToken, accessTokenSecret, consumerKey,consumerSecret);
5-
//Intuit.Ipp.Core exposes ServiceContext
5+
var context = new ServiceContext(oauthValidator, realmId, IntuitServicesType.QBD);
6-
ServiceContext context = Initializer.InitializeServiceContext(oauthValidator, realmId, appToken, string.Empty, dataSourcetype);
6+
var commonService = new DataServices(context);
7
                
8-
//Intuit.Ipp.Services exposes DataServices
8+
9-
DataServices commonService = new DataServices(context);
9+
10
                                            Name = "John Smith",
11
                                        };
12
13
var custResponse = commonService.Add(cust);