def post_emails_deliver(self,body={}): url = "/emails/deliver" headers = {'Authorization': self.token, 'Content-Type': "application/json", 'Accept': "application/vnd.mozy.bifrost+json;v=1"} request_url = ('%s%s' % (self.base_url, url)) response = RestfulHelper.send_post(request_url, headers, body) return response
def post_accounts_partners(self,body): url = "/accounts/partners" headers = {'Authorization': self.token, 'Content-Type': "application/json", 'Accept': "application/vnd.mozy.bifrost+json;v=1"} request_url = ('%s%s' % (self.base_url,url)) print(request_url) response = RestfulHelper.send_post(request_url,headers,body) print(response.text) return response