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
Remove cover page / header in Python
Tags: sdk
Jun 7, 2019 at 12:10pm   •   2 replies  •  0 likes
Khanh Truong

Hi Team

I would like to know how to remove the cover page and the header ( showing from and to ) in python. Any help will be appreciated.


Here is the code im using to send

def send(self,file): # test.pdf

builder = self.rcsdk.create_multipart_builder()

builder.set_body({

'to': [{'phoneNumber': '+18885xxxxx'}],

'faxResolution': "High",

# 'coverPageText': "This is a demo Fax page from Python"

})

attachment = (file, open(file,'rb').read(), 'application/pdf')

builder.add(attachment)

request = builder.request('/account/~/extension/~/fax')

resp = self.platform.send_request(request)

print ('Fax sent. Message status: ' + resp.json().messageStatus)


2 Answers
answered on Jun 14, 2019 at 10:33am  

Hi Khanh,

I did some research but found no way to remove the fax header. So it seems impossible. But IMHO, it does not make sense to receive a fax without any information about the sender, date and time etc.


 0
answered on Jun 7, 2019 at 12:53pm  

Updated Figured out removing the cover page, now just need to remove headers info :)

builder = self.rcsdk.create_multipart_builder()

builder.set_body({

'to': [{'phoneNumber': '+18885575038'}],

'faxResolution': "High",

'coverIndex':0,

# 'coverPageText': "This is a demo Fax page from Python"

})


 0



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