Closed davidbe closed 12 months ago
I don’t get if the body need to be url-encoded or json, but you can specify the content-type in the HTTP headers like others. Dexador will use www-x-url-encoded automatically if the content is an association list.
Thank you for your response, it got me started to think in the right direction. Because it API is described with few documentation and based on reverse engineering, I thought the body was like json, but it just had to be a string "client_id=vtm-go-androidtv".
Hi,
I want to convert some python code to Common Lisp - but it fails and I don't have a clue... It looks like the same issue as issue #81 . But the clues given, don't work.
Python-code:
results in:
{"user_code":"RLGTNZ","device_code":"NGJH22UluH-oOONjhJZrFW1M2mne6tu4QcfqORSOQww","interval":2,"verification_uri_complete":"https://login2.vtm.be/androidtv?user_code=RLGTNZ","verification_uri":"https://login2.vtm.be/androidtv","expires_in":300}
Which is good.But this Common Lisp code doesn't work:
Results in error:
Verbose output:
Content-Type here is text/plain. In #81 it was suggested that it might be encoded in www-x-form-urlencoded with cl-json:encode-json-to-string, but I guess it fails? How can I find this out?