skip to Main Content

Php – Tiktok oauth request parameters are malformed

I'm trying to exchange my authorization token for a bearer token. According to the docs it should be a application/x-www-form-urlencoded request. My code looks like this: $res = Http::withHeaders([ 'Accept' => 'application/json', 'Content-Type' => 'application/x-www-form-urlencoded', 'Cache-Control' => 'no-cache' ])->post('https://open.tiktokapis.com/v2/oauth/token/', […

VIEW QUESTION
Back To Top
Search