- Install Postgresql (8.1+)
- Create the
config/api_keys.ymlfile containing you api keys - And do some more steps
bundle exec rake test
bundle exec rails s
bundle exec cap <stage> deploy
Fields:
- identifier:string (mandatory)
- properties:hash
curl -H "Content-Type: application/json" -d '{"user": {"identifier": "1234", "properties": {"favorite_color": "pink"}}}' http://localhost:3000/api/users?api_key=12345
Fields:
- identifier:string (mandatory)
- name:string
- properties:hash
curl -H "Content-Type: application/json" -d '{"item": {"name": "Walkman", "properties": {"color": "pink"}}}' http://localhost:3000/api/items\?api_key\=12345
Fields:
- user_identifier:string (mandatory)
- item_identifier:string (mandatory)
- event:string (mandatory)
When an user_identifier / item_identifier is given and they don't exists. These objects will be created
curl -H "Content-Type: application/json" -d '{"event": {"user_identifier": "1234", "item_identifier": "sku23", "event": "view"}}' http://localhost:3000/api/events\?api_key\=123
curl -H "Content-Type: application/json" http://localhost:3000/api/events\?api_key\=123

