4 ms·
The API is exposed natively. Where you see the curl examples, there is a dropdown to show how to do it in other languages. [PFCloud callFunctionInBackground:
by lacker 14y ago
The API is exposed natively. Where you see the curl examples, there is a dropdown to show how to do it in other languages.
[PFCloud callFunctionInBackground:@"averageStars"
withParameters:@{@"movie": @"The Matrix"}
block:^(NSNumber *ratings, NSError *error) {
if (!error) {
// ratings is 4.5
}
}];
We should probably default to something other than curl or tweak that UI a bit. Thanks for pointing this out.
- bengl3rt 14y agoCool! That's what I was looking for. Yes, it's a bit buried. I missed the dropdown on the right. Speaking of Twilio, their docs are very good for stuff like this. They use a big obvious segmented control for switching between XML and JSON, for example.