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 query [quickbooks/api.py] #13

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

add error handling for v3 query [quickbooks/api.py] #13

grue opened this issue Mar 7, 2014 · 0 comments

Comments

@grue
Copy link
Owner

grue commented Mar 7, 2014

filename : quickbooks/api.py
line # : 86
tag : todo
md5 : 7d15b299fdd0ed930d649ba8b798aaff

       # [todo] - add error handling for v3 query
       constructed_url = "{}/company/{}/query?query={}".format(self.url_base, self.realm_id, urllib.quote(query))
       return self.session.get(constructed_url).json()
       def create(self, object_type, object_body):
       # [todo] - add error handling for v3 create
       # [todo] - validate that the object_body is a proper json blob
       constructed_url = "{}/company/{}/{}".format(self.url_base, self.realm_id, object_type)
       return self.session.post(constructed_url.lower(), object_body).json()
       def delete(self, object_type, object_body):
       # [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):
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