Home > Back-end >  How can I replicate this curl command using a Jetty request in java?
How can I replicate this curl command using a Jetty request in java?

Time:10-11

I have this curl command

curl -F 'client_id={client id}' \
-F 'client_secret={client secret}' \
-F 'code={temporary token}' \
-F 'grant_type=authorization_code' \
https://cloud.lightspeedapp.com/oauth/access_token.php

taken from Content-Type falsehood in the docs

So yeah, turns out Lightspeed just has terrible documentation. Let this be a cautionary tale.

  • Related