Basic Post request with Parameters

Hi,

Im trying to send a request to an api but not sure how to set out the post request:

POST

Url

https://auth.tidal.com/v1/oauth2/device_authorization

Url-Encoded POST Parameter

client_id: {client_id}
scope: r_usr+w_usr+w_sub

Example Response

{ “deviceCode”: “xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx”, “userCode”: “AFIDU”, “verificationUri”: “link.tidal.com”, “verificationUriComplete”: “link.tidal.com/AFIDU”, “expiresIn”: 300, “interval”: 2 }

Looks like I need to send client id and scope in a parameter in the plugin call. Seems quite simple but I cant quite figure it out?

John

Does How to make a Post Http request help?

No, I’m using this as a starting point but must be doing something wrong.