View difference between Paste ID: k2p4reKk and 0FLgr3EJ
SHOW: | | - or go back to the newest paste.
1-
//Retrieve QBO Company MetaData
1+
//Retrieve QBD Company MetaData
2-
//Documentation: http://goo.gl/Wudil
2+
3
//Create the Service Context using oAuthValidator
4
Intuit.Ipp.Core.ServiceContext context = new Intuit.Ipp.Core.ServiceContext(oauthValidator, realmId, Intuit.Ipp.Core.IntuitServicesType.QBD);
5-
Intuit.Ipp.Core.ServiceContext context = new Intuit.Ipp.Core.ServiceContext(oauthValidator, realmId, Intuit.Ipp.Core.IntuitServicesType.QBO);
5+
6
// Create Service Object for an entity
7
Intuit.Ipp.Services.DataServices commonService = new Intuit.Ipp.Services.DataServices(context);
8
9
// Call the service method
10
Intuit.Ipp.Data.Qbd.CompanyMetaData actualCompanyMetaData = commonService.FindById(new Intuit.Ipp.Data.Qbd.CompanyMetaData()) as Intuit.Ipp.Data.Qbd.CompanyMetaData;