GET /api/v2/users/:user_id/tweets
List tweets
Examples
GET /users/980190962/tweets
200
[
{
"created_at": "2013-01-25T21:44:16Z",
"id": 980190962,
"scheduled_at": "2012-06-27T17:55:59Z",
"sent": false,
"text": "MyText",
"updated_at": "2013-01-25T21:44:17Z",
"user_id": 980190962
}
]
GET /api/v2/users/:user_id/tweets/:id
Show a tweet
Examples
GET /users/980190962/tweets/980190962
200
{
"created_at": "2013-01-25T21:44:16Z",
"id": 980190962,
"scheduled_at": "2012-06-27T17:55:59Z",
"sent": false,
"text": "MyText",
"updated_at": "2013-01-25T21:44:17Z",
"user_id": 980190962
}
POST /api/v2/users/:user_id/tweets
Create a tweet
Examples
POST /users/980190962/tweets
{
"tweet": {
"scheduled_at": "2012-06-27 17:55:59 UTC",
"sent": false,
"text": "MyText",
"user_id": "980190962"
}
}
201
{
"created_at": "2013-01-25T21:44:17Z",
"id": 980190963,
"scheduled_at": "2012-06-27T17:55:59Z",
"sent": false,
"text": "MyText",
"updated_at": "2013-01-25T21:44:17Z",
"user_id": 980190962
}
Params
-
tweet :
optional
[ Must be a Hash ]
-
scheduled_at :
optional
-
sent :
optional
[ Must be 'true' or 'false' ]
-
text :
optional
-
user_id :
optional
[ Must be a number. ]
PUT /api/v2/users/:user_id/tweets/:id
Update a tweet
Examples
PUT /users/980190962/tweets/980190962
{
"tweet": {
"scheduled_at": "2012-06-27 17:55:59 UTC",
"sent": false,
"text": "MyText",
"user_id": "980190962"
}
}
204
Params
-
tweet :
optional
[ Must be a Hash ]
-
scheduled_at :
optional
-
sent :
optional
[ Must be 'true' or 'false' ]
-
text :
optional
-
user_id :
optional
[ Must be a number. ]
DELETE /api/v2/users/:user_id/tweets/:id
Destroy a tweet
Examples
DELETE /users/980190962/tweets/980190962
204
GET /api/v2/users
List users
Examples
GET /users
200
[
{
"created_at": "2013-01-25T21:44:16Z",
"id": 298486374,
"name": "MyString",
"updated_at": "2013-01-25T21:44:16Z"
},
{
"created_at": "2013-01-25T21:44:16Z",
"id": 980190962,
"name": "MyString",
"updated_at": "2013-01-25T21:44:16Z"
}
]
GET /api/v2/users/:id
Show an user
Examples
GET /users/980190962
200
{
"created_at": "2013-01-25T21:44:16Z",
"id": 980190962,
"name": "MyString",
"updated_at": "2013-01-25T21:44:16Z"
}
POST /api/v2/users
Create an user
Examples
POST /users
{
"user": {
"name": "MyString"
}
}
201
{
"created_at": "2013-01-25T21:44:17Z",
"id": 980190963,
"name": "MyString",
"updated_at": "2013-01-25T21:44:17Z"
}
Params
-
user :
optional
[ Must be a Hash ]
PUT /api/v2/users/:id
Update an user
Examples
PUT /users/980190962
{
"user": {
"name": "MyString"
}
}
204
Params
-
user :
optional
[ Must be a Hash ]
DELETE /api/v2/users/:id
Destroy an user
Examples
DELETE /users/980190962
204