I am looking for method to get the list of all the mailboxes through ews api.
Is there any method call,Get-Mailbox cmd in powershell, that can get me the list of all the mailboxes in an exchange server/ office 365 in EWS API?
ExchangeService.GetSearchableMailboxes is what you need, specify the the filter as an empty string, then you get all the mail boxes.