In short, our API allows third party applications to send web pages to their users’ Kindles just like Sendtoreader.com does.
There are only 2 API methods currently available, and both of them are accessible via very simple HTTP or HTTPS calls.
To test any of those methods simply enter the appropriate URL with necessary parameters in your browser’s address bar, and you’ll get a simple text response. Actually, the HTTP status code will contain all information you need to know, but if your application can’t read the status code from the header, you can read the status code from the response body.
For easy integration into 3rd-party applications, all parameters may be passed via POST or the query string (GET) or any mixed combination.
The API is available via HTTP or HTTPS. I’d suggest to use HTTPS when possible.
This method does a very simple job: it checks the given pair of username and password for validity. Use this if you want to only check credentials without sending anything to Sendtoreader, such as when you first prompt the user for Sendtoreader credentials in a settings screen or on the first Sendtoreader request.
URL: https://sendtoreader.com/api/checklogin/
Parameters:
Sample call:
https://sendtoreader.com/api/checklogin/?username=someusername&password=secret
Resulting status codes:
URL: https://sendtoreader.com/api/send/
Parameters:
username (required)
password (required)
title
author
url
text (either url or text is required)
Sample call:
https://sendtoreader.com/api/send/?username=xxx&password=yyy&url=http://someurl.com/page.html
Please don’t forget to encode the parameters (urlencode). If you are having troubles with user login or sending a web page to his Kindle through Sendtoreader, this is very likely to be the issue. If you are using GET requests or producing POST request-body manually, you need to URL-encode the values.
Resulting status codes: