Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // your custom app logic goes here:
- (function(){
- var turbo = Turbo({
- site_id: 'APP_ID'
- })
- $('#btn-register').click(function(event){
- event.preventDefault()
- // These values should come from a form tag in an html document:
- var userInfo = {
- firstName: 'michael',
- lastName: 'jordan',
- username: 'mj23',
- password: 'chicagobulls'
- }
- turbo.createUser(userInfo, function(err, data){
- if (err){
- alert('Error:' + err.message)
- return
- }
- alert('User Created: ' + JSON.stringify(data))
- })
- })
- })()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement