question

Viresh P avatar image
Viresh P asked Anirban answered

Getting "Method not allowed" exception from Java

I am trying to call Api Get Message List from my Java class:

/restapi/v1.0/account/accountId/extension/extensionId/message-store

but getting "Method not allowed" exception with http 405

Can someone say what is the issue? Cannot figure it out

errors
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Anirban avatar image
Anirban answered

This happens when you make mistake in choosing the API method to call.

The Api Get Message List is having GET method to call and any other API method not supported

Make sure in your Java class if you had used the same

1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys