Bookstore

Recent

Author Topic: Has anyone built a Lazarus app to talk to Quickbooks Online  (Read 491 times)

RedOctober

  • Sr. Member
  • ****
  • Posts: 308
Has anyone built a Lazarus app to talk to Quickbooks Online
« on: February 18, 2020, 05:06:40 am »
They a RESTful API which I think shd be technology agnostic.  I need to upload a bunch of receipt info.  I have already built an app that communicates with CDYNE to look up mobile/non-mobile phone numbers, so I think Lazarus shd have components with the capability to talk to "QBO".

I don't want to use Java, .Net, Python, Ruby, etc. I want to use Lazarus Free Pascal.

https://developer.intuit.com/app/developer/qbo/docs/build-your-first-app

herux

  • Full Member
  • ***
  • Posts: 101
Re: Has anyone built a Lazarus app to talk to Quickbooks Online
« Reply #1 on: February 18, 2020, 05:36:32 am »
Should only use OAuth2 and JSON, right ?

Leledumbo

  • Hero Member
  • *****
  • Posts: 8166
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Has anyone built a Lazarus app to talk to Quickbooks Online
« Reply #2 on: February 18, 2020, 03:00:01 pm »
Auth(both entication and orization) is OAuth2 based, nothing really special apart from asking them to get client id/secret and provide your own callback url to receive the code and exchange it with (both access and refresh) token for use with API call, which simply returns JSON. fcl-web and fcl-json has everything you need, provided you know how to make a oauth client capable web application and parsing json with them.

RedOctober

  • Sr. Member
  • ****
  • Posts: 308
Re: Has anyone built a Lazarus app to talk to Quickbooks Online
« Reply #3 on: March 05, 2020, 11:28:43 pm »
dum question:

Where can I find the fcl components?  They are listed in my installed packages (FCL 1.0.1) so are supposed to be in one of my component tabs, but I can't find them.

RedOctober

  • Sr. Member
  • ****
  • Posts: 308
Re: Has anyone built a Lazarus app to talk to Quickbooks Online
« Reply #4 on: March 05, 2020, 11:58:12 pm »
I also posted in the "Jobs" page to get some help.

https://forum.lazarus.freepascal.org/index.php/topic,48793.0.html

mr-highball

  • Full Member
  • ***
  • Posts: 127
    • Highball Github
Re: Has anyone built a Lazarus app to talk to Quickbooks Online
« Reply #5 on: March 06, 2020, 01:43:36 am »
For the json models you could give ezjson a shot (simple decorators for to/from json)
https://github.com/mr-highball/ezjson

If you don't want to use ^ then standard fpjson will work too.

Check this wiki for the web stuff,
https://wiki.lazarus.freepascal.org/fpWeb_Tutorial

RedOctober

  • Sr. Member
  • ****
  • Posts: 308
Re: Has anyone built a Lazarus app to talk to Quickbooks Online
« Reply #6 on: March 06, 2020, 04:04:19 am »
Ohhhh... so I'm supposed to make a little web "server" that can send POSTs and receive POSTs  (or something like that).  I don't build a regular Windows app to do this.  Is that correct?

Leledumbo

  • Hero Member
  • *****
  • Posts: 8166
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Has anyone built a Lazarus app to talk to Quickbooks Online
« Reply #7 on: March 25, 2020, 09:05:36 am »
Ohhhh... so I'm supposed to make a little web "server" that can send POSTs and receive POSTs  (or something like that).  I don't build a regular Windows app to do this.  Is that correct?
Yes, that callback is HTTP callback, not local application callback. It may point to localhost, though, no need to host it over the internet.