Skip to content

Instantly share code, notes, and snippets.

@pbonnell
Created November 13, 2011 13:52
Show Gist options
  • Save pbonnell/1362128 to your computer and use it in GitHub Desktop.
Save pbonnell/1362128 to your computer and use it in GitHub Desktop.
SIRCLE Reviews
# Add review (comment)
([{"request_path"=>"http://staging2.sircleadvertising.com/people/ito/4eb9dd393132182d9300/Actions?h=J8th3fK7",
"request_body"=>"<TrackingActionReviewUnsolicited i:type=\"TrackingActionReviewUnsolicited\" xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://schemas.datacontract.org/2004/07/SIRCLE.DataAccess.BusinessObjects.External\"><ActionID>46</ActionID><CategoryName>Administrative</CategoryName><ExternalID>4eb9dd393132182d9300000e</ExternalID><ProductID>38</ProductID><Review>Eye shadow is great</Review></TrackingActionReviewUnsolicited>",
"status_code"=>200,
"response_body"=>"false",
"request_method"=>"post", "_id"=>BSON::ObjectId('4ebfcdea313218f2d7000086'), "updated_at"=>2011-11-13 14:02:18 UTC, "created_at"=>2011-11-13 14:02:18 UTC}]
# Add Rating
([{"request_path"=>"http://staging2.sircleadvertising.com/people/ito/4eb9dd393132182d9300/Actions?h=J8th3fK7",
"request_body"=>"<TrackingActionRating xmlns=\"http://schemas.datacontract.org/2004/07/SIRCLE.DataAccess.BusinessObjects.External\"><ActionID>58</ActionID><CategoryName>Administrative</CategoryName><ExternalID>4eb9dd393132182d9300000e</ExternalID><ProductID>38</ProductID><SampleID>0</SampleID><MaxRating>5</MaxRating><Rating>4</Rating></TrackingActionRating>",
"status_code"=>200,
"response_body"=>"false",
"request_method"=>"post", "_id"=>BSON::ObjectId('4ebfcdeb313218f2d7000087'), "updated_at"=>2011-11-13 14:02:19 UTC, "created_at"=>2011-11-13 14:02:19 UTC}]
#ADD Recommendation:
([{"request_path"=>"http://staging2.sircleadvertising.com/people/ito/4eb9dd393132182d9300/Actions?h=J8th3fK7",
"request_body"=>"<TrackingActionRecommendation xmlns=\"http://schemas.datacontract.org/2004/07/SIRCLE.DataAccess.BusinessObjects.External\"><ActionID>47</ActionID><CategoryName>Administrative</CategoryName><ExternalID>4eb9dd393132182d9300000e</ExternalID><ProductID>38</ProductID><RecommendID>2</RecommendID><SampleID>0</SampleID></TrackingActionRecommendation>",
"status_code"=>200
, "response_body"=>"false",
"request_method"=>"post", "_id"=>BSON::ObjectId('4ebfcdeb313218f2d7000088'), "updated_at"=>2011-11-13 14:02:19 UTC, "created_at"=>2011-11-13 14:02:19 UTC}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment