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.
Retrieving a paste...
URL
http://tny.cz/api/get.(xml|json)
ON SUCCESS
<?xml version="1.0" encoding="utf-8"?>
<result>
<id>8a0bc</id>
<paste>test paste</paste>
<title>test title</title>
<subdomain></subdomain>
<code>0</code>
<private>0</private>
<date>1262338210</date>
<expires>0</expires>
<branch></branch>
<views>2</views>
</result>
ON FAIL
<?xml version="1.0" encoding="utf-8"?>
<result>
<error>error_code_here</error>
</result>
ERROR CODES
no_id - no paste #id was supplied
paste_deleted - paste was deleted
paste_no_exist - paste does not exist
password_invalid - password for paste was incorrect.
Required Parameters
id
(string)
The paste #id to retrieve
Optional Parameters
password
(string)
Required if the paste is password-protected.