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