public function getMailbox($mailboxName)
    {
        $uri = "mailboxes/$mailboxName";
        try {
            $response = $this->client->getEndpoint()->get($uri);
        } catch (RequestException $e) {
            $this->processRequestException($e);
        }

        return new Mailbox(\GuzzleHttp\json_decode($response->getBody()));
    }
public function getMailbox($mailboxName)
    {
        $uri = "mailboxes/$mailboxName";
        try {
            $response = $this->client->getEndpoint()->get($uri);
        } catch (RequestException $e) {
            $this->processRequestException($e);
        }

        return new Mailbox(\GuzzleHttp\json_decode($response->getBody()));
    }
public function getMailbox ( $ mailboxName ) { $ uri = "mailboxes/$mailboxName" ; try { $ response = $ this -> client -> getEndpoint ( ) -> get ( $ uri ) ; } catch ( RequestException $ e ) { $ this -> processRequestException ( $ e ) ; } return new Mailbox ( \ GuzzleHttp \ json_decode ( $ response -> getBody ( ) ) ) ; }
Retrieve the current state of a mailbox.

@param string $mailboxName Name of the mailbox
@return Mailbox
@throws NotFoundException
Retrieve the current state of a mailbox .