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

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

add error handling for v3 read [quickbooks/api.py] #12

grue opened this issue Mar 7, 2014 · 0 comments

Comments

@grue
Copy link
Owner

grue commented Mar 7, 2014

filename : quickbooks/api.py
line # : 66
tag : todo
md5 : 80fab73e73341e23be6bce56bcea175c

       # [todo] - add error handling for v3 read
       """ Example Error:
       {u'Fault': {u'Error': [{u'Detail': u'System Failure Error: Could not find resource for relative :
       /v3/company/<id>/Employee/0 of full path: https://internal.qbo.intuit.com/qbo30/v3/company/<id>/Employee/0',
        u'Message': u'An application error has occurred while processing your request',
        u'code': u'10000'}],
        u'type': u'SystemFault'},
        u'time': u'<Timestamp>'
        }
        """
       constructed_url = "{}/company/{}/{}/{}".format(self.url_base, self.realm_id, object_type, entity_id)
       return self.session.get(constructed_url).json()
       def query(self, query):
       """
           Documentation for the query language can be found here:
           https://developer.intuit.com/docs/0025_quickbooksapi/0050_data_services/020_key_concepts/
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