public function get($subAuthId)
    {
        if (ArrayOperations::checkNull([$subAuthId])) {
            throw
            new PlivoValidationException(
                'subauth id is mandatory');
        }

        $response = $this->client->fetch(
            $this->uri . $subAuthId . '/',
            []
        );

        return new SubAccount(
            $this->client,
            $response->getContent(),
            $this->pathParams['authId'],
            $subAuthId);
    }
public function get($subAuthId)
    {
        if (ArrayOperations::checkNull([$subAuthId])) {
            throw
            new PlivoValidationException(
                'subauth id is mandatory');
        }

        $response = $this->client->fetch(
            $this->uri . $subAuthId . '/',
            []
        );

        return new SubAccount(
            $this->client,
            $response->getContent(),
            $this->pathParams['authId'],
            $subAuthId);
    }
public function get ( $ subAuthId ) { if ( ArrayOperations :: checkNull ( [ $ subAuthId ] ) ) { throw new PlivoValidationException ( 'subauth id is mandatory' ) ; } $ response = $ this -> client -> fetch ( $ this -> uri . $ subAuthId . '/' , [ ] ) ; return new SubAccount ( $ this -> client , $ response -> getContent ( ) , $ this -> pathParams [ 'authId' ] , $ subAuthId ) ; }
You can call this method to retrieve details of a subaccount like auth_id,
auth_token, etc. Returns an object representing your Plivo subaccount.

@param string $subAuthId The auth ID of the subaccount to retrieve.
@return SubAccount
@throws PlivoValidationException
You can call this method to retrieve details of a subaccount like auth_id auth_token etc . Returns an object representing your Plivo subaccount .