Alternative to calling via cURL
Michael Doub
mikedoub at gmail.com
Tue Dec 30 16:16:05 EST 2014
Skip,
Take a look at the postmark routines in my MasterLibrary. I think that
they will get you started. Also the library contains the JSON code you
will need.
Regards,
Mike
https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0
On 12/30/14 3:43 PM, Magicgate Software - Skip Kimpel wrote:
> Hello LC'ers
>
> I have an API I am trying to get data from, I can access it via cURL, how
> would I attack this from a LC level?
>
> Example of call:
>
> curl -G -H "api_key: A28894762098BJTEST"
> https://api.myapi.com/test/v1/products
> --data-urlencode 'q={"cat_id":12345,"brand":"My Brand","model":"My Model"}'
>
> I am sure there is a way to do this from within LC. The results come back
> as JSON, which I can deal with.
>
> Any help would be greatly appreciated!
>
> SKIP
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list