question

Rick Smith avatar image
Rick Smith asked ·

resource for parameter accountid is not found when tryinfg to send fax

Trying to send fax using the example code: this is throwing:

Resource for parameter [accountId] is not found

The code I am using


from ringcentral import SDK

rcsdk = SDK("xxxxx...", "xxxxx...", "https://platform.devtest.ringcentral.com")
platform = rcsdk.platform()
platform.login("+15551212", "101", "password")
accountId= "+phonenumber"
extensionId= "101"
recipient="+1999..."
builder = rcsdk.create_multipart_builder()
builder.set_body({
'to' :[{'phonenumber': recipient}],
'faxresolution': "High'",
'coverPageText': "This is a fax page sent to you automatically"
})
request = builder.request(f'/restapi/v1.0/account/{accountId}/extension/{extensionId}/fax')
resp = platform.send_request(request) #Exception here


My question is what is tbe accountId, I ave been using the phonenumber listed in my account. There seems to be no other reference to accountid anywhere?

fax
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

· Write an Answer
Anirban avatar image
Anirban answered ·

You can use https://platform.devtest.ringcentral.com/restapi/v1.0/account/~ to get your account id number in response as Id


1 comment
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.

Thanks, I seem to be getting the accountid, however, when I try to run the above code, I get
resource not found

at this point:
platform.login("+15551212", "101", "password")

What Am I missing?

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 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