https://github.com/josemarluedke/events4me
https://github.com/josemarluedke/events4me
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/josemarluedke/events4me
- Owner: josemarluedke
- Created: 2012-08-06T20:46:52.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2012-10-10T21:00:49.000Z (about 13 years ago)
- Last Synced: 2025-03-28T20:15:32.402Z (7 months ago)
- Language: JavaScript
- Size: 512 KB
- Stars: 1
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Events4me
## API Usage
Everything is RESTFul
This param is required for authentication of user
auth_token
The format of result (html, json and xml) should like:
http://sample.com/page.json
http://sample.com/page.html
http://sample.com/page.xmlExemple
curl http://localhost:3000/me.json?auth_token=3KzQzdstMHpLxDYfrjfp
### Get my informations
curl http://localhost:3000/me.json?auth_token=TOKEN
### Update my informations
curl -X PUT -d 'user[name]=Lorem&user[push]=false&user[locale]=pt-BR' http://localhost:3000/me/settings.json?auth_token=TOKEN
### Get my devices
curl http://localhost:3000/me/devices.json?auth_token=TOKEN
### Create a device
curl -X POST -d 'device[udid]=123&device[push_token]=asdf&device[name]=josemar+iphone&device[kind]=iphone' http://localhost:3000/me/devices.json?auth_token=TOKEN
### Delete a device
curl -X DELETE http://localhost:3000/me/devices/1.json?auth_token=TOKEN
### Get my authorizations
curl http://localhost:3000/me/authorizations.json?auth_token=TOKEN
### Delete a authorization
curl -X DELETE http://localhost:3000/me/authorizations/1.json?auth_token=TOKEN
### Get events
curl http://localhost:3000/events.json?auth_token=TOKEN
### Get one event
curl http://localhost:3000/events/1.json?auth_token=TOKEN
### Get organization of event
curl http://localhost:3000/events/1/organization.json?auth_token=TOKEN