Interested in contributing to this blog?
Review the Sugar Developer Blog Style Guide for details.
Get Started with Sugar 7
Sign up for
Sugar Developer News
Yesterday we looked at PHP code, and today we’ll dig into Python. Again we’ll use a third party library, this time the super simple to use Requests library. Look at how simple it makes the interactions below…
Glossing over the fact that this code contains syntax errors and won’t actually run, wouldn’t it make more sense to fix the bugs in https://github.com/sugarcrm/python_webservices_library/issues and suggest people use that instead?
should be as
if ‘error’ in response and response[u’error’]:
Fill in your details below or click an icon to log in:
You are commenting using your WordPress.com account. ( Log Out / Change )
You are commenting using your Twitter account. ( Log Out / Change )
You are commenting using your Facebook account. ( Log Out / Change )
You are commenting using your Google+ account. ( Log Out / Change )
Connecting to %s
Notify me of new comments via email.
Notify me of new posts via email.