All,
So we have been using the HTTP to grab XML and parse
it without any problems. Now we have a 3^rd party that we will need
to call their API and return JSON. Now I know this is not a support
for JSON but the calling of the API should be the same I would think.
Just returning a different format. ( I have called a different API
to return the JSON the same way below and could parse it but the 3^rd
party “calling” is different. It was an entirely different 3^rd party
that was on the web for free to test.)
So a basic way we always use the XML is like this. ( used an example
program )
url = 'http://www.myweather2.com/developer/forecast.ashx+
?uac=6FZ1-pvF8X&query=44011&temp_unit=f&ws_unit=kph';
filename = http_tempfile() + '.xml';
rc = http_url_get( url : filename );
etc……..
Now the 3^rd party says we cannot pass a request through a URL like this.
Here is the 3^rd party website ( https://www.samsara.com/api
<https://www.samsara.com/api> )
We have to pass some “parameters” or a “data” file. I’m not sure how
to do this in the HTTP examples.
Any pointers or pushing me in to the right direction would be great.
I’m close I think but maybe just don’t understand it in my head.
Thanks again for all your help.
Continental Express <http://www.ceioh.com/>
*Ron Koontz | IT Manager | Continental Express, Inc*
*10450 State Rt 47 W Sidney, Ohio 45365*
(: Direct: (937) 419.8118*| *(: Tel (800) 497.2100 x118*|*Ê: Fax (937)
498.2155**
*:_rkoontz@xxxxxxxxx <mailto:rkoontz@xxxxxxxxx>_ Visit us on the web:
www.ceioh.com <http://www.ceioh.com/> FB
<https://www.facebook.com/pages/Continental-Express-Inc/394970290582855>Twitter
<https://twitter.com/CEIOHIO>
------------------------------------------------------------------------
The information contained in this e-mail is intended only for the
individual or entity to whom it is addressed. Its contents (including
any attachments) may contain confidential and/or privileged
information. If you are not an intended recipient you shall not use,
disclose, disseminate, copy or print its contents. If you receive this
e-mail in error, please notify the sender by reply e-mail and delete
and destroy the message. Continental Express, Inc. and its
subsidiaries and affiliates will not be held liable for the unintended
or unauthorized use of any information contained in this email or as a
result of any additions or deletions of information originally
contained in this email.
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi