I'm strugling to Pars JSON from a API link
here is the link https://api.racehero.io/v1/events/3134/ ... board.json
This is the API documentation https://racehero.docs.apiary.io/#/authe ... irst%2F200
and this is my code
Code: Select all
-- add the HTTP headers
put "Content-Type: application/json" & CRLF into tHeaders
put "Accept: application/json" & CRLF after tHeaders
set the httpHeaders to tHeaders
-- encode the params
put urlEncode("dc43bb5fab5f86a11fb9") into tUsername
put urlEncode("gilarkadarsah") into tPassword
--send to Parse and get the results
put "https://api.racehero.io/v1/events/3134/live/leaderboard.json?Username="&tUsername&"&Password="&tPassword into loginURL
put URL loginURL into tResults
put tResults into field "Field"
put tResults into tArrays
ParsingJSon tArrays
Comment and Help would be Appriciate
Best Regards
Gilar