question

Boru Admin avatar image
Boru Admin asked Phong Vu answered

OAU-213 after refresh token when renew subcription

I using PHP code to refresh Token before token expires 1 day.

After refresh token, I save new token and new refresh token to Database.

I use this token to renew Webhook Subscription (subcription created via token Auth $platform->auth()->data()) , but this have error:

Array (    [errorCode] => TokenInvalid    [message] => Token not found    [errors] => Array        (            [0] => Array                (                    [errorCode] => OAU-213                    [message] => Token not found                )         ) 
)

This is code:

Please help me check.

authentication
1 |3000

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

1 Answer

Phong Vu avatar image
Phong Vu answered

Can you do a quick test.

1. Use the new access token to read your webhook subscription

2. Use the new access token to delete the existing access token

3. Use the new access token to create a new access token instead of renew the existing one

4. Use the new access token to read the extension info

Let me know which one works and which one does not work

1 |3000

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