NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: LeroySchulz on January 09, 2021, 12:59:36 PM

Title: API Questions
Post by: LeroySchulz on January 09, 2021, 12:59:36 PM
(I thought I posted this two days ago but I'm not seeing it so I'm posting again.)

I'm looking at using NetTalk to access two APIS:

1)  Google Sheets API (https://developers.google.com/sheets/api/guides/concepts).

2)  The Outlook API (through either https://docs.microsoft.com/en-us/outlook/rest/get-started or https://www.nylas.com/integrations/outlook-api/).

Are any of you already using either of these APIs?  Or if you're experienced at this, how straight-forward vs difficult can I expect this to be?

Thank you.
Title: Re: API Questions
Post by: Ubaidullah on January 10, 2021, 01:21:23 AM
Hi Leroy,

Calling the Google API is straightforward. You need to build the call as a url post in a NetWebClient procedure.

I haven't used the Outlook API so cannot comment much. If it is a Web API, it should be simple to call it too.

The complexity is not in the call but in building the calling url correctly and managing state and call sequence which differs from one API to another.

Regards,
Ubaidullah Nubar.
Title: Re: API Questions
Post by: rjolda on January 10, 2021, 10:09:45 AM
Hi Leroy,
I had written a full implementation to utilize our State PDMP API for dispensation of scheduled drugs.  I  wrote it all in Net Talk - 3 years ago.  No OAUTH but straight forward.  I then went on to fully automate it so that I could query the PDMP for my complete schedule of patients for the day.  Besides, I was able to get full reports and set up the data results so that they made sense to me.  Once I got the hang of it and the query and response values, I did it all - simply with net Talk Client!  If you get stuck, yell at me, maybe I can help you get along. 
Ron Jolda
Title: Re: API Questions
Post by: DonRidley on January 10, 2021, 04:33:19 PM
Here are links that may help:

https://www.capesoft.com/docs/NetTalk12/NetTalkOAuth.Htm#ImplementingOAuth

https://www.capesoft.com/docs/NetTalk12/NetTalkOAuth.Htm#Google