tweets, beautifully transformed
Create a new 140Plus Posting.
URL:
http://140plus.com/api/postings/new
HTTP Method(s):
GET, POST
Note: the http://140plus.com/api/postings/new service can accept GET parameters, POST parameters as application/x-www-form-urlencoded form data, or multipart/form-data.
However, to included photos in the posting, multipart/form-data must be used.
Parameters:
api-key. Required. You can find your apiKey at http://140plus.com/acct/apikeystatus. Required. Specifies the title of the post (this part is tweeted)desc. Required. Specifies the body of the post - limited HTML allowed.hash. Specifies the the optional category hashcode to place the post in.imgfile1. multipart/form-data containing an imageResponse:
<?xml version="1.0"?>
<posting>
<request>/api/postings/new</request>
<postid>hle4e</postid>
<twurl>http://twitter.com/mrblog/status/10855278870269952</twurl>
<desc>Chicago Cubs player and radio color man Ron Santo died yesterday at the age of 70. His love for the Cubs, baseball, and life was infectious and made him, without exaggeration, the best-loved man in Chicago. He will be sorely missed. </desc>
<status>Chicago Cubs Legend Ron Santo Passes Away</status>
<pubdate>Sat Dec 04 00:37:54 GMT 2010</pubdate>
<hash>sports</hash>
<imgurl1>http://onefortyplus.org/img/hle4e/Santo.jpg</imgurl1>
</posting>
Usage examples:
Retrieve a 140Plus Posting.
URL:
http://140plus.com/api/postings/show/{id}.format
Supported formats:
xml, jsonHTTP Method(s):
GETParameters:
id. Required. Id of the post to retrieveResponse:
{"posting": {
"request": "/api/postings/show/LCISN.json",
"postid": "LCISN",
"desc": "An enterprising capitalist has turned a gag gift into an act of civil disobedience, selling Flying Pasties for air travelers who don't like revealing their private parts to TSA agents using back-scatter scanners.",
"status": "Pasties Sold for Modest Air Travelers",
"hash": "",
}}
Usage examples:
The 140Plus API attempts to return appropriate HTTP status codes for every request.
The 140Plus API returns error messages as appropriate. For example, an error might look like this:
<?xml version="1.0" encoding="UTF-8"?>
<posting>
<request>/api/postings/show/SxTC4</request>
<error>Invalid or expired posting</error>
</posting>