RE: Need Help - Foxpro & Chilkat & Rest API

2022-07-12 Thread Richard Kaye
Generally speaking, the token is the key that unlocks access to the APIs you want to call. So you need to persist that in your business object, and pass it to any API calls you make. Depending on the API you're hitting, the token value could be in the request header or it could be a key:value pa

RE: Need Help - Foxpro & Chilkat & Rest API

2022-07-12 Thread Richard Kaye
And I know you're using Chilkat but West-Wind has some good, simple examples of using REST with VFP. IIRC Rick also did that as a session at SWFox so you've probably got that whitepaper in the downloads. -- rk From: ProfoxTech On Behalf Of Richard Kaye Sent: Tuesday, July 12, 2022 10:20 AM To

RE: Need Help - Foxpro & Chilkat & Rest API

2022-07-12 Thread Richard Kaye
That was the 30,000 for view, of course. 😊 Gotta get your head wrapped around the requirements of the API you’re calling. What I’m referring to is the architecture of the internal APIs written by my engineering team here. There are a couple of different flavors and the token handling isn’t cons

Re: Need Help - Foxpro & Chilkat & Rest API

2022-07-12 Thread Stephen Russell
Do you use Postman to test what yo need to do with the API? Then just make the same call from the web side of VFP. Catch json responses and you are good. On Tue, Jul 12, 2022 at 9:20 AM Richard Kaye wrote: > Generally speaking, the token is the key that unlocks access to the APIs > you want to

RE: Need Help - Foxpro & Chilkat & Rest API

2022-07-12 Thread Richard Kaye
One key point from my own journey with this stuff. CaSe matters. If the a key value is myData, you need to make sure that case gets preserved. By default, VFP doesn’t preserve case when consuming and producing JSON so you have to explicitly make sure you’re doing that. Rick’s got stuff in his cl

RE: Need Help - Foxpro & Chilkat & Rest API

2022-07-12 Thread Chris Davis
Hi Paul Sorry only just got around to your email in my inbox! Do you have a link to the API documentation? or if not, as well as the token end point in your code (/rest/api/token/) do you also have an authorisation end point? Regards Chris. -Original Message- From: ProfoxTech On Be

DOCUMENTS

2022-07-12 Thread Richard Mertl
[https://blufiles.storage.msn.com/y1mvBJI1-3_evpuoGarebzrKSmarylG0bpAsijY2vb3bbv-XLWnVaAPOP6oQm_hG0pwEPS1OOdVzq03p0VU5zs-WCdtSZLsJnKe] Richard Mertl