authorizeRequest($options); if ($token){ $res = $this->client->get($this->endpoint."/profile", $options); return json_decode($res->getBody()->getContents()); } return null; } }