Skip to content

Instantly share code, notes, and snippets.

@astfarias
Last active August 10, 2017 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save astfarias/ff3674156f076c1928fb2fb7cb1acab2 to your computer and use it in GitHub Desktop.
Save astfarias/ff3674156f076c1928fb2fb7cb1acab2 to your computer and use it in GitHub Desktop.
AIDAX - Syntax - User
// Identify User
// client-side JS
ax.user({
id: "USER ID", //If the id is an email AIDAX will contextalize the id
properties: {
property1: "value",
property2: "value"
},
migrate: true //optional parameter to migrate old user data in this session to the new user. Default is true
});
// server-side HTTP request
curl https://api.aidax.com.br/user?key=<key>&previous_uid=<user id>&uid=<user id>&origin=<optional session origin>&p=<user properties in JSON format>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment