Create an user.

Parameters

user[name] John Doe
user[email] [email protected]
user[password] something

EXAMPLE

http://voxe.org/api/v1/users

Sign in with an user. It will return a user object with token. Just send it on every request as parameter named auth_token .

Parameters

email [email protected]
password something

EXAMPLE

http://voxe.org/api/v1/users/verify

Use Facebook connect. It return an user object with an access token if the connection was successful.

Parameters

facebookToken XYZXYZXYZXYZXYZ

EXAMPLE

http://voxe.org/api/v1/users/facebookconnect

Returns current user. Or update it by using PUT method.

http://voxe.org/api/v1/users/self

Search for users.

Parameters

name Benjamin

EXAMPLE

http://voxe.org/api/v1/users/search?name=benjamin

Destroy an user from database.

EXAMPLE

http://voxe.org/api/v1/users/{id}

Grant admin access to an user.

EXAMPLE

http://voxe.org/api/v1/users/{id}/addadmin

Revoke admin access to an user.

EXAMPLE

http://voxe.org/api/v1/users/{id}/removeadmin

Get list of all admins.

EXAMPLE

http://voxe.org/api/v1/users/admins