Nate sent out an email a few days ago about how he updated the web service. The new (not in the slides) URL to use
Also, here is Nate's original email, for reference.
After Jeff's good suggestion, I improved the web service.
It's setScore now takes a uid key. This should be the unique id of
the device, which you can get with
NSString *uid = [[UIDevice currentDevice] uniqueIdentifier];
setScore returns either 'ok' or 'fail' The only way to get 'fail' is
to submit a rating that is not [1, 100].
getScore has now been renamed to getAvgScore. It returns the average
score for the recipe_id you pass in. If the system doesn't have any
reviews for that recipe, it returns 50. (The average score.)
I added getUserScore. It takes a recipe_id and uid and returns the
most recent rating for that recipe_id from that uid. If the user
hasn't submitted a score for that recipe, it returns -1.
You are allowed to submit more than one score, they all get included.
Samples:
http://ftaires.com:9000/setScore?recipe_id=42&score=88&uid=natehttp://ftaires.com:9000/getUserScore?recipe_id=42&uid=natehttp://ftaires.com:9000/getAvgScore?recipe_id=42Please let me know if you have any questions or problems.
Thanks,
Nate