@datafire/rummblelabs v6.0.0
@datafire/rummblelabs
Client library for Seldon
Installation and Usage
npm install --save @datafire/rummblelabs
let rummblelabs = require('@datafire/rummblelabs').create();
.then(data => {
console.log(data);
});
Description
Seldon is an Open Predictive Platform that currently allows item recommendations and general predictive models to be deployed based on structured historical data.
Actions
postAction
post new action between a user and an item
rummblelabs.postAction({
"body": null
}, context)
Input
- input
object
- oauth_token
string
: oauth token - body required Action
- oauth_token
Output
Output schema unknown
getItems
get items
rummblelabs.getItems({}, context)
Input
- input
object
- oauth_token
string
: oauth token - full
boolean
: get all attributes for item - name
string
: keywords to match - dimension
integer
: limit items to a particular dimension - type
integer
: limit items to a particular type - limit
integer
: limit number of items returned
- oauth_token
Output
Output schema unknown
postItem
post new item
rummblelabs.postItem({
"body": null
}, context)
Input
- input
object
- oauth_token
string
: oauth token - body required Item
- oauth_token
Output
Output schema unknown
putItem
update item
rummblelabs.putItem({
"body": null
}, context)
Input
- input
object
- oauth_token
string
: oauth token - body required Item
- oauth_token
Output
Output schema unknown
getItemTypes
get item type
rummblelabs.getItemTypes({}, context)
Input
- input
object
- oauth_token
string
: oauth token
- oauth_token
Output
Output schema unknown
getItem
get item
rummblelabs.getItem({
"itemId": ""
}, context)
Input
- input
object
- oauth_token
string
: oauth token - itemId required
string
: the item id to get - full
boolean
: get all attributes for item
- oauth_token
Output
Output schema unknown
addAction
Add a user interaction
rummblelabs.addAction({
"consumer_key": "",
"user": "",
"item": "",
"type": "",
"jsonpCallback": ""
}, context)
Input
- input
object
- consumer_key required
string
: consumer key - user required
string
: user id - item required
string
: item id - type required
string
: type - jsonpCallback required
string
: JSONP callback - timestamp
integer
: time
- consumer_key required
Output
Output schema unknown
getRecommendation
Get recommendations for a user
rummblelabs.getRecommendation({
"consumer_key": "",
"user": "",
"jsonpCallback": ""
}, context)
Input
- input
object
- consumer_key required
string
: consumer key - user required
string
: user id - item
string
: currently viewed item id - limit
integer
: max number of recommendations to return - dimension
integer
: get recommendations for a particular item dimension (e.g., just sports articles) - attributes
string
: the fields to return - algorithms
string
: override default algorithms with specified algorithms - jsonpCallback required
string
: JSONP callback
- consumer_key required
Output
Output schema unknown
getToken
get token
rummblelabs.getToken({
"consumer_key": "",
"consumer_secret": ""
}, context)
Input
- input
object
- consumer_key required
string
: consumer key - consumer_secret required
string
: consumer secret
- consumer_key required
Output
Output schema unknown
getUsers
get users
rummblelabs.getUsers({}, context)
Input
- input
object
- oauth_token
string
: oauth token - full
boolean
: get all attributes for user - name
string
: keywords to match - limit
integer
: limit number of users returned
- oauth_token
Output
Output schema unknown
postUser
post new user
rummblelabs.postUser({
"body": null
}, context)
Input
- input
object
- oauth_token
string
: oauth token - body required User
- oauth_token
Output
Output schema unknown
updateUser
update user
rummblelabs.updateUser({
"body": null
}, context)
Input
- input
object
- oauth_token
string
: oauth token - body required User
- oauth_token
Output
Output schema unknown
getUser
get a user
rummblelabs.getUser({
"userId": ""
}, context)
Input
- input
object
- oauth_token
string
: oauth token - userId required
string
: the user id to get - full
boolean
: get all attributes for user
- oauth_token
Output
Output schema unknown
getUserActions
get a user's recent actions
rummblelabs.getUserActions({
"userId": ""
}, context)
Input
- input
object
- oauth_token
string
: oauth token - userId required
string
: the user id to get - full
boolean
: get all attributes for user - limit
integer
: limit number of actions returned
- oauth_token
Output
Output schema unknown
getUserRecommendations
get recommendations for a user
rummblelabs.getUserRecommendations({
"userId": ""
}, context)
Input
- input
object
- oauth_token
string
: oauth token - userId required
string
: the user id to get - full
boolean
: get all attributes for user - limit
integer
: limit number of actions returned - dimension
integer
: get recommendations for a particular item dimension (e.g., just sports articles) - algorithms
string
: override default algorithms with specified algorithms
- oauth_token
Output
Output schema unknown
Definitions
Action
- Action
object
- item required
string
- type required
integer
: action type - user required
string
- value
number
: action value (e.g. a rating)
- item required
AttributesName
- AttributesName
object
- attrName1
string
- attrName2
string
- attrName1
Item
- Item
object
- attributesName AttributesName
- id required
string
- type
integer
: type of item
User
- User
object
- active
boolean
: whether user is active - attributesName AttributesName
- id required
string
- username
string
: name of user
- active