ronaksolanki10ronaksolanki10 MemberComments: 4 Received thanks: 0 Member since: December 2018 edited September 21
When i am trying to get the product list with ../api/v1/product API with passing valid token. i am receiving the below response.

{
 "errors":
   [
     {
        "code":"9",
        "status":"401",
        "title":"The resource owner or authorization server denied the request.",
        "detail":"The JWT string must have two dots"
     }
   ]
}

The curl request is like following.

 

        $curl = curl_init();
        curl_setopt($curl, CURLOPT_URL, $url);
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($curl, CURLOPT_CUSTOMREQUEST, 'GET');
        curl_setopt(
            $curl,
            CURLOPT_HTTPHEADER,
            ['Content-Type: application/json',
             'Authorization: Bearer {$token}'
            ]
        );

Answers

Sign In or Register to comment.