organizations()->getByUsername($orgUsername); * ``` * * @param string $username * @author Benjamin Blake (sitelease.ca) * * @return Organization|Response */ public function getByUsername(string $username) { $client = $this->getClient(); try { $response = $this->get("orgs/$username"); $statusCode = $response->getStatusCode(); $body = $response->getBody(); if ($statusCode == 200) { return Organization::fromJson(json_decode($body)); } else { return $response; } } catch (ServerException $serverError) { return $response; } } }