makeRequest does the following:
return (is_array($responseBody) && (count($responseBody) > 0)) ? array_shift($responseBody) : $responseBody;
Because of the array_shift it drops "scope" from the response from "admin/oauth/access_token", which is
{ "access_token": "f85632530bf277ec9ac6f649fc327f17", "scope": "write_orders,read_customers" }
makeRequest
does the following:return (is_array($responseBody) && (count($responseBody) > 0)) ? array_shift($responseBody) : $responseBody;
Because of the
array_shift
it drops "scope" from the response from "admin/oauth/access_token", which is{ "access_token": "f85632530bf277ec9ac6f649fc327f17", "scope": "write_orders,read_customers" }