JavaScript SDK for interacting with the PredictionIO API.
Source code on GitHub.
- Include the predictionio.js file in the page.
- Call the predictionio function with the app id of your PredictionIO application, which returns a client object. (See the documentation for more initialization options.)
- Call methods on the object to access the PredictionIO API. The following methods are available (documentation):
- add_item
- add_user
- delete_item
- delete_user
- get_item
- get_user
- item_recommendations
- record
- similar_items
Uses Jasmine 2.0 (https://github.com/pivotal/jasmine) and Sinon 1.9.0 (http://sinon.org) for testing.