skip to Main Content

Laravel EBay API Client Credential Grant Request Gives Error, Unsupported Grant Type

I am using Laravel 8 and the Http Client library. Here is my code: public function mintNewApplicationAccessToken() { $response = Http::withHeaders([ 'Accept' => 'application/json', 'Content-Type' => 'application/x-www-form-urlencoded', 'Authorization' => 'Basic ' . base64_encode(config('ebay.ebay_client_id_sandbox') . ":" . config('ebay.ebay_client_secret_sandbox')), ])->post(config('ebay.ebay_token_request_endpoint_url_sandbox'), [ 'grant_type'…

VIEW QUESTION
Back To Top
Search