News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
resource for parameter accountid is not found when tryinfg to send fax
Tags: fax
Oct 27, 2020 at 12:27pm   •   1 replies  •  0 likes
Rick Smith

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?

1 Answer
answered on Oct 27, 2020 at 1:57pm  

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



 0
on Oct 29, 2020 at 6:09am   •  0 likes

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?



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us