Skip to content

Instantly share code, notes, and snippets.

@astfarias
Created August 10, 2017 17:34
Show Gist options
  • Save astfarias/99232aa216b5e50e0360dd1ad5108d08 to your computer and use it in GitHub Desktop.
Save astfarias/99232aa216b5e50e0360dd1ad5108d08 to your computer and use it in GitHub Desktop.
AIDAX - Capturing Session Properties Using JS Client ou HTTP request
// Session properties example
// client-side JS
ax.session({
access_region: "São Paulo",
has_login: "true",
has_checkout: "true"
});
// server-side HTTP request example
curl https://api.aidax.com.br/session?key=<key>&uid=<user id>&p={access_region:"São Paulo",has_login:"true",has_checkout:"true"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment