API Documentation
Any of the following API Methods can be hit with POST and GET. The return formats are either XML or JSON, as specified by the hit.
Getting a list of pastes by an user...
URL
http://tny.cz/api/list.(xml|json)
ON SUCCESS
<?xml version="1.0" encoding="utf-8"?>
<result>
<paste>paste_id</paste>
<paste>paste_id</paste>
<paste>paste_id</paste>
<paste>paste_id</paste>
</result>
ON FAIL
<?xml version="1.0" encoding="utf-8"?>
<result>
<error>error_code_here</error>
</result>
ERROR CODES
auth_invalid - invalid authentification
Required Parameters
authenticate
(string)
- conjoin username and password with a colon.
Stores the paste under the authenticated user.
Format: sampleuser:password
Password should be in MD5 format
Optional Parameters
sort
(string)
- only "oldest" or "newest" will be accepted
sorts the list of pastes by sort first
limit
(integer)
- use 0 for no limit
limits the amount of pastes retrieved