Giter Site home page Giter Site logo

tamber-node's People

Contributors

exobin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

bmweinstein7

tamber-node's Issues

How to filter with tags

We do not understand how to filter with tags. With properties, they have a value, but tags are just a name without a value. If we wanted to filter out certain items that were tagged a certain way, say we had movies and we wanted to filter out movies tagged as "horror". How would we do this? Is there some kind of "exists" keyword?
Any advice appreciated.

Filter Difficulties

Hi all.

I'm new to Tamber and am trying to form a filter around a number property being greater than 0. I'm attempting to use the following code (based on the age-recommendation tutorial):

var userId = 'foo';
var count = 5;
var filter = { 
	gt: [
		{property: "num"},
		0
	]
};
tamber.discover.recommended({
		'user': userId,
		'number': count,
		'filter': filter
	}, function(err, result) { 
                // ...
        }
);

As a sanity check, I used tamber.item.retrieve to verify that my items exist. This is basically what I'm receiving back from Tamber:

{
  "id": "insertIdHere",
  "object": "item",
  "properties": {
   "num": 5,
   "rating": 10
  },
  "tags": ["foo","bar"],
  "popularity": 0.9751131055535003,
  "hotness": 0.5113000522579753,
  "hidden": false,
  "created": 1507688240
}

I'd expect that at least this item would be returned (since num > 0) but tamber.discover.recommended returns an empty array as a result. I tried also with tamber.discover.next but got the same empty result.

I'd appreciate any and all help with this!

Security Vulnerabilities

Hi,
After running npm audit in a project with tamber-node as a dependency, the following message is received:

tamber_vulnerabilities

As some of these are high level and moderate level vulnerabilities, I believe they should be fixed. Do let me know if any more information is needed from my end.

Installation error

Hi
I have just started using tamber and I think I have encountered some issue. After executing npm install --save tamber and running the app, I get the following error:

Error: Cannot find module './objects/Event'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/*****/node_modules/tamber/lib/Tamber.js:3:13)
    at Module._compile (module.js:652:30)
    at Module._extensions..js (module.js:663:10)
    at Object.require.extensions.(anonymous function) [as .js] (/****/node_modules/babel-register/lib/node.js:152:7)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)

Please let me know if I am doing something wrong.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.