anchor.diff:  
   You can send these data to PredictionIO Event Server in real-time easily by
   making a HTTP request or through the `EventClient` of an SDK.
  -
  -To use the SDK, first install the SDK in the language of your choice - [Java](/sdk/java/), [PHP](/sdk/php), [Python](/sdk/python), or [Ruby](/sdk/ruby). 
  -
   
   <div class="tabs">
     <div data-tab="Python SDK" data-lang="python">
  
positive.code:    'entityId' => <USER ID>,
     'targetEntityType' => 'item',
     'targetEntityId' => <ITEM ID>,
     'properties' => array('rating'=> <RATING>)
  ));
  
  // A user buys an item
  
negative.code:   "targetEntityType" : "item",
    "targetEntityId" : <ITEM ID>,
    "properties" : {
      "ratings" : <RATING>
    }
    "eventTime" : <TIME OF THIS EVENT>
  }'
  