Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add error handling for v3 delete [build/lib/quickbooks/api.py] #7

Open
grue opened this issue Mar 7, 2014 · 0 comments
Open

add error handling for v3 delete [build/lib/quickbooks/api.py] #7

grue opened this issue Mar 7, 2014 · 0 comments

Comments

@grue
Copy link
Owner

grue commented Mar 7, 2014

filename : build/lib/quickbooks/api.py
line # : 97
tag : todo
md5 : e17ea85169dae401661c713b5d10f65a

       # [todo] - add error handling for v3 delete
       # [todo] - validate that the object_body is a proper json blob
       constructed_url = "{}/company/{}/{}?operation=delete".format(self.url_base, self.realm_id, object_type)
       return self.session.post(constructed_url.lower(), object_body).json()
       def update(self, object_type, object_body):
       # [todo] - add error handling for v3 update
       # [todo] - validate that the object_body is a proper json blob
       constructed_url = "{}/company/{}/{}?operation=update".format(self.url_base, self.realm_id, object_type)
       return self.session.post(constructed_url.lower(), object_body).json()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant