public function getAll(): array
    {
        $response = $this->client->request('GET', $this->client->getConfig('base_uri') . '/shared-links/');

        $json = json_decode($response->getBody());

        $sharedLinksCollection = [];

        foreach ($json->fileshares as $sharedLink) {
            $sharedLinksCollection[] = (new SharedLinkType)->fromJson($sharedLink);
        }

        return $sharedLinksCollection;
    }
public function getAll(): array
    {
        $response = $this->client->request('GET', $this->client->getConfig('base_uri') . '/shared-links/');

        $json = json_decode($response->getBody());

        $sharedLinksCollection = [];

        foreach ($json->fileshares as $sharedLink) {
            $sharedLinksCollection[] = (new SharedLinkType)->fromJson($sharedLink);
        }

        return $sharedLinksCollection;
    }
public function getAll ( ) : array { $ response = $ this -> client -> request ( 'GET' , $ this -> client -> getConfig ( 'base_uri' ) . '/shared-links/' ) ; $ json = json_decode ( $ response -> getBody ( ) ) ; $ sharedLinksCollection = [ ] ; foreach ( $ json -> fileshares as $ sharedLink ) { $ sharedLinksCollection [ ] = ( new SharedLinkType ) -> fromJson ( $ sharedLink ) ; } return $ sharedLinksCollection ; }
List shared links

@return SharedLinkType[]
@throws Exception
@throws \GuzzleHttp\Exception\GuzzleException
List shared links