question

YYModelRiskManagment ServiceAccount avatar image
YYModelRiskManagment ServiceAccount asked Phong Vu commented

Python/Databricks: Resource for parameter [accountID] is not found

I am using Python inside of Databricks to make a call to the Data API for the call log sync. I am using JWT auth. I am following all of the instructions given on the developer website. I am able to successfuly login with JWT, but when I try to hit call-log-sync api with my accountId found in the Sandbox credentials I get the following error: Resource for parameter [accountId] is not found

I have confirmed that my account has access to the app, which has the proper permissions. What else do I need to do to get this working?

rest api
1 comment
1 |3000

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

Phong Vu avatar image Phong Vu ♦♦ commented ·

Can you share the code with the path and the params which you used for calling the API?

0 Likes 0 ·

1 Answer

YYModelRiskManagment ServiceAccount avatar image
YYModelRiskManagment ServiceAccount answered Phong Vu commented

1698067203413.png (57.7 KiB)
7 comments
1 |3000

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

Phong Vu avatar image Phong Vu ♦♦ commented ·

To avoid providing a wrong account id, you can use the tilde '~' (as shown in all our sample code) sign instead of an account id. The system will detect the account based on the user access token.

0 Likes 0 ·
YYModelRiskManagment ServiceAccount avatar image YYModelRiskManagment ServiceAccount Phong Vu ♦♦ commented ·

After doing so, I get the following error:In order to call this API endpoint, one of the following permissions [ReadCompanyCallLog] have to be granted to the authorized user.

How can I find out which AccountID is being used?

0 Likes 0 ·
Phong Vu avatar image Phong Vu ♦♦ YYModelRiskManagment ServiceAccount commented ·

What error? Remember that you are in the sandbox environment, make sure that your app is authenticated by a user in your sandbox account, not the production account.

0 Likes 0 ·
Show more comments

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