Hi Paul I use Chilkat a lot to grab data from API's, a lot using OAuth and the expiring token. Are you able to share the code that's getting you to the 400 response so I can see where your upto?
Regards Chris -----Original Message----- From: ProfoxTech <profoxtech-boun...@leafe.com> On Behalf Of Paul H. Tarver Sent: 09 July 2022 18:45 To: profoxt...@leafe.com Subject: Need Help - Foxpro & Chilkat & Rest API I have a spec project where I need to build an application using a REST API to extract data elements and then post those data elements to a different system. The API requires me to get a token upfront (which has a five-minute life span), issue my requests with the token and then get the results back in a JSON or XML format. Based on recommendations I received at the Virtual FoxFest earlier this year, I purchased the Chilkat tools and dove into what has turned out to be the deep end without knowing how to swim. The documentation at Chilkat while extensive is almost too extensive for me to understand exactly what I've got to do to make this work. So far, I've been unable to even get a token back. All I seem to be able to get back from the server is 400 Bad request Your browser sent an invalid request. That response has been less than helpful. I've reached out to the API Provider but their answers are focused on requests issued after I get the token. My question is this: Does anyone have any sample Foxpro code they use for a similar process (Request a token, then make requests with the token) using the Chilkat tools they would be willing to share? A Foxpro wrapper would be too much to hope for, but that would be even better if it is exists. I've got to get to a point where I'm beyond this initial stage to prove I can make this work. Help! I know this is possible, but so far, I'm not making much headway. Paul H. Tarver Tarver Program Consultants, Inc. --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- [excessive quoting removed by server] _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: https://leafe.com/archives This message: https://leafe.com/archives/byMID/lo0p123mb4988ed7f380b8acc3f56c1528f...@lo0p123mb4988.gbrp123.prod.outlook.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.