-
Couldn't load subscription status.
- Fork 1
Connections
This is the documentation for v1 of the Readmill API which is deprecated and will be discontinued on 2012-12-16. Please upgrade to v2, the new developer documentations are at developers.readmill.com.
This part of the API has to do with reading the state of service connections. Service connections represent links to other networks that the user has created, ex. Twitter or Facebook.
- /me/connections, GET
- /me/connections/#{id}, GET
An example of the JSON representation of a connection to twitter could look like below,
{
"id": 40,
"service": "twitter",
"post_highlight": false,
"post_reading": false
}
The post fields refer to if posting on that kind of event should be default or not. If post_to is omitted on the following endpoints the default action will be performed.
-
POST /books/#{id}/readingsusespost_reading(ex. start reading) -
POST /readings/#{id}/highlightsusespost_highlight(ex. highlighted) -
PUT /readings/#{id}usespost_reading(ex. finished reading)
They refer to the settings set at http://readmill.com/settings/connections.
Get all connections for the current user.
The default sort order is service ascending.
- access_token
- 200 and a list of connections
curl http://api.readmill.com/me/connections?access_token=TOKEN
Retrieves the representation of a single connection.
- id: The id of the connection.
- access_token
- Success: 200 and a connection
- Failure: 404
curl http://api.readmill.com/me/connections/40?access_token=TOKEN