ServiceContext serviceContext = new ServiceContext(RealmId, IntuitServicesType.QBO, oAuthValidator) OAuth2RequestValidator oAuthValidator = new OAuth2RequestValidator(AccessToken) Public async void FindCustomer(string customerId) This.OAuthClient = new OAuth2Client(ClientId, ClientSecret, RedirectURI, "production") Public event EventHandler FindCreditMemoResponse Public event EventHandler FindInvoiceResponse Public event EventHandler FindCustomerResponse Get this information from the OAuth 2.0 Playground: Private void HandleFindQBOCreditMemoResponse(object sender, creditMemo) Private void HandleFindQBOInvoiceResponse(object sender, invoice) Private void HandleFindQBOCustomerResponse(object sender, customer) Get IDs to test from QBO website URL when accessing a record Private void btnTest_Click(object sender, RoutedEventArgs e) Qbo.FindCreditMemoResponse += HandleFindQBOCreditMemoResponse Qbo.FindInvoiceResponse += HandleFindQBOInvoiceResponse Qbo.FindCustomerResponse += HandleFindQBOCustomerResponse QuickbooksOnline qbo = new QuickbooksOnline() NET 5.0 WPF application, so here's some sample code that worked for me: I'm new to the QuickBooks Online API and had trouble getting the code working for a. ServiceContext context = new ServiceContext(accessToken, consumerKey, IntuitServicesType.QBO, oauthValidator) ĭataService service = new DataService(context) OAuthRequestValidator oauthValidator = new OAuthRequestValidator(accessToken, accessTokenSecret, consumerKey, consumerSecret) The code follows: var customer = new Customer() Ĭustomer.MiddleName = txtMiddleName.Text Ĭustomer.PrimaryEmailAddr = new EmailAddress() I'm using the QuickBooks Online REST API v3.0 for. I don't have a reputation to post images, but the developer settings page onĪpp ID: what is this? realm Id, company id?Īpp Token,OAuth Consumer Key,OAuth Consumer Secret Where do I find the access token, access token secret, realm id and/or company ID? I only have App Token, Oauth Consumer Key, OAuth consumer Secret, possibly realmId (App ID) NET SDK for QuickBooks v3.0 Create Invoice Error - Bad Request I need accessToken, accessTokenSecret, consumerKey,consumerKeySecret, appToken, companyId. How to add invoice or sales receipt quickbooks rest api v3.0 I need accessToken, accessTokenSecret, consumerKey, consumerKeySecret, realmId.īased on this: IPP. I'm struggling to find any working end-to-end samples. I need to add new customers to QuickBooks Online from C#.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |