SHARE
TWEET

Untitled

a guest Aug 13th, 2019 146 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def add_domain(self, domain, archiving, service_type="both", request_limt=6):
  2.         domain = self.session.post(self.operations["domains"] + domain, data={"serviceType": service_type, "archivingServiceEnabled": archiving}).text
  3.         log.info(service_type)
  4.         log.info(domain)
  5.  
  6.  
  7. PS C:\Users\secon\Desktop\Rackspace Email & Apps Api Client> python .\client.py me --add-domain apitestdomain22.com --archiving False
  8.  
  9.  
  10. Namespace(accountnumber='me', add_archive=None, add_domain='apitestdomain22.com', add_domains=None, addhex_mailbox=None, addhex_mailboxes=None, addrse_mailbox=None, addrse_mailboxes=None, archiving='False', del_archive=None, del_domain=None, del_domains=None, delhex_mailbox=None, delhex_mailboxes=None, delrse_mailbox=None, delrse_mailboxes=None, display_name=None, edit_domain=None, edithex_mailbox=None, edithex_mailboxes=None, editrse_mailbox=None, editrse_mailboxes=None, extra_storage=None, get_admin=None, get_admins=False, get_domain=None, get_domains=False, get_info=False, get_invoice=False, get_invoices=False, gethex_mailbox=None, gethex_mailboxes=None, getrse_mailbox=None, getrse_mailboxes=None, offset=None, password=None, service_type=None, size=None, username=None)
  11.  
  12.  
  13. False
  14. {"badRequestFault":{"message":"Invalid service type. Can only be 'exchange', 'rsemail', or 'both'","details":"8/13/2019 10:01:21 PM","code":400}}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top