Scott, I have reached my next roadblock. The API will only return 100 records unless you tell it that you want to use asynchronous processing. In postman I have to add a line to the header that says
Prefer: respond-async. This will then give a response in the header that you then use in the next call to fetch the data asynchronously. How/where do I include the Prefer: respond-async in the header? I though perhaps I could include it in the postdata parameter, but that does not seem work.
// tell it we want async processing and get response......... postdata
=
'Prefer:respond-async'
; response
= http_string('GET':
URL: postdata:
'')
;
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx <ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx>
On Behalf Of Scott Klement Les, In the current beta version of httpapi (http://www.scottklement.com/httpapi/beta)
you can do this: http_setAuth(HTTP_AUTH_BEARER: '': YourToken); In older versions you have to build the header yourself using an HTTP_POINT_ADDL_HEADER callback. Also -- I do not understand why you are calling http_persist_open in your example. What is that meant to do?
-- Scott Klement sk@xxxxxxxxxxxxxxxx On 4/8/2021 10:28 AM, Les Turner wrote:
|
-- _______________________________________________ Ftpapi mailing list Ftpapi@xxxxxxxxxxxxxxxxxxxxxx http://scottklement.com/mailman/listinfo/ftpapi