Interacting with the new RESTful Sugar Web Services… in Python

sugarcrmdevelopers —  June 25, 2013 — 2 Comments

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…

2 responses to Interacting with the new RESTful Sugar Web Services… in Python

  1. 
    Chris Faulkner June 25, 2013 at 4:18 pm

    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?

  2. 

    if response[u’error’]:

    should be as

    if ‘error’ in response and response[u’error’]:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s