client->request('/user/orgs'); return \GuzzleHttp\json_decode($response->getBody(), true); } /** * @param string $username * @return array */ public function getUserOrganizations(string $username): array { $response = $this->client->request('/users/' . $username . '/orgs'); return \GuzzleHttp\json_decode($response->getBody(), true); } }