Created
April 7, 2014 15:27
-
-
Save kwhinnery/10022448 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var twilio = require('twilio'); | |
Parse.Cloud.define('capability', function(request, response) { | |
var cap = new twilio.Capability(); | |
cap.allowClientIncoming('bondjamesbond'); | |
response.success(cap.generate()); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[PFCloud callFunctionInBackground:@"capability" | |
withParameters:nil | |
block:^(NSString *token, NSError *error) { | |
TCDevice *device = [TCDevice initWithTokenOrWhateverIForget:token]; | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment