There is two methods a client can use to retrieve the data from the API, method 1 is a PureJava script method and 2 is a more complex yet feature full method.
1 PureJava Script Method
This method is good for simple requests such as, products bought, or clicked on.
Retrieving Data - Pure Java Script Example - Limited features
2 Using Syrup.JS a more comprehinsive feature full method
This method is good for more complex sets, such as was product X clicked on but not bought!