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
//Add QBO TimeActivity | |
//Documentation: http://goo.gl/DjJyb | |
List<Employee> employees = commonService.FindAll(new Employee(), 1, 1).ToList<Employee>(); | |
List<Customer> customers = commonService.FindAll(new Customer(), 1, 1).ToList<Customer>(); | |
TimeActivity timeActivity = new TimeActivity(); | |
timeActivity.BillableStatus = BillableStatusEnum.Billable; | |
timeActivity.BillableStatusSpecified = true; | |
timeActivity.Hours = "8"; |
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
//Documentation: http://docs.developer.intuit.com/0025_Intuit_Anywhere/0060_Reference/3002_Reconnect_API | |
public string CallReconnectAPI(DataServices dataServices) | |
{ | |
HttpWebRequest httpWebRequest = WebRequest.Create("https://appcenter.intuit.com/api/v1/Connection/Reconnect") as HttpWebRequest; | |
httpWebRequest.Method = "GET"; | |
httpWebRequest.Headers.Add("Authorization", GetDevDefinedOAuthHeader(dataServices,httpWebRequest, "")); | |
UTF8Encoding encoding = new UTF8Encoding(); | |
HttpWebResponse httpWebResponse = httpWebRequest.GetResponse() as HttpWebResponse; | |
using (Stream data = httpWebResponse.GetResponseStream()) |
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 | |
//Retrieve Active QBD Customers with a minimum balance | |
//Documentation: http://goo.gl/jUdxR | |
var oauthValidator = new OAuthRequestValidator(accessToken, accessTokenSecret, consumerKey,consumerSecret); | |
var context = new ServiceContext(oauthValidator, realmId, IntuitServicesType.QBD); | |
var commonService = new DataServices(context); | |
var qbdCustomerQuery = new Intuit.Ipp.Data.Qbd.CustomerQuery | |
{ | |
ActiveOnly = true, |
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() | |
{ |
NewerOlder