public function getList(array $optionalArgs = [])
    {
        $response = $this->client->fetch(
            $this->uri,
            $optionalArgs
        );

        $applications = [];

        foreach ($response->getContent()['objects'] as $application) {
            $newApplication = new Application(
                $this->client,
                $application,
                $this->pathParams['authId']);

            array_push($applications, $newApplication);
        }

        return new ApplicationList(
            $this->client,
            $response->getContent()['meta'],
            $applications);
    }
public function getList(array $optionalArgs = [])
    {
        $response = $this->client->fetch(
            $this->uri,
            $optionalArgs
        );

        $applications = [];

        foreach ($response->getContent()['objects'] as $application) {
            $newApplication = new Application(
                $this->client,
                $application,
                $this->pathParams['authId']);

            array_push($applications, $newApplication);
        }

        return new ApplicationList(
            $this->client,
            $response->getContent()['meta'],
            $applications);
    }
public function getList ( array $ optionalArgs = [ ] ) { $ response = $ this -> client -> fetch ( $ this -> uri , $ optionalArgs ) ; $ applications = [ ] ; foreach ( $ response -> getContent ( ) [ 'objects' ] as $ application ) { $ newApplication = new Application ( $ this -> client , $ application , $ this -> pathParams [ 'authId' ] ) ; array_push ( $ applications , $ newApplication ) ; } return new ApplicationList ( $ this -> client , $ response -> getContent ( ) [ 'meta' ] , $ applications ) ; }
Retrieve a list of applications

@param array $optionalArgs
+ Valid arguments
+ string subaccount - Id of the subaccount, in case only subaccount applications are needed.
+ integer limit - Used to display the number of results per page. The maximum number of results that can be fetched is 20.
+ integer offset - Denotes the number of value items by which the results should be offset. Eg:- If the result contains a 1000 values and limit is set to 10 and offset is set to 705, then values 706 through 715 are displayed in the results. This parameter is also used for pagination of the results.

@return ApplicationList
Retrieve a list of applications