Skip to content

A javascript example of an implementation of the DeltaDNA REST API

License

Notifications You must be signed in to change notification settings

deltaDNA/DeltaDNA_REST_js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DeltaDNA_REST_js

A javascript example of an implementation of the DeltaDNA REST API.

Configuration

collectURL: the URL used as collect endpoint

envKey: the environmentKey of the account the data is sent to.

Operation

This example uses the localStorage to store the userID, when a userID is not known in there it will create a new user and record the newPlayer event. For the session the sessionStorage is used. When reloading the page the session does not end, this makes a multi page client a possibility.

Events are stored in memory until they are sent to the collect endpoint by the sendEvents call. Make sure to call the sendEvents function before switching to a new page.

About

A javascript example of an implementation of the DeltaDNA REST API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 65.5%
  • HTML 21.4%
  • CSS 13.1%