ShaunBaker / PredictionIO-Node-SDK

PredictionIO Node SDK
64 stars 9 forks source link

switched .recommendation and .similarity from GET to POST #6

Closed the8thbit closed 10 years ago

the8thbit commented 10 years ago

items.recommendation was returning an empty object. Switching from .post(endpoint) to .get(endpoint) on line 122 fixed this. Also fixed this for items.similarity. It was experiencing the same issue, however, I am not running a similarity engine, so I did not get a chance to test that fix. (It fails and I get a stack trace if I try)