Skip to content

Instantly share code, notes, and snippets.

@brianjmiller
Created February 11, 2013 20:01
Show Gist options
  • Save brianjmiller/4757128 to your computer and use it in GitHub Desktop.
Save brianjmiller/4757128 to your computer and use it in GitHub Desktop.
Y.io(
"/pdl/api/guest/user",
{
method: "POST",
headers: {
"Accept": "application/json",
"Content-Type": "application/json"
},
data: Y.JSON.stringify(
{
primaryEmail: email,
authSecret: password,
firstName: firstName,
lastName: lastName
}
),
context: this,
on: {
success: this._ioSuccess,
failure: this._ioFailure
},
"arguments": {
username: email
}
}
);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment