create a paste in Friendpaste from command line:
benoitc@pollen:/tmp$ restcli -H "Accept:application/json" -H "Content-Type: application/json" http://friendpaste.com POST - < test.json
{"url": "http://friendpaste.com/1Po5tOC012QeFYOS3b3RaA", "rev": "373163383163", "ok": true, "id": "1Po5tOC012QeFYOS3b3RaA"}
This command send test.json file to Friendpaste and you get back the full url of paste in json result.
test.json file :
{
"title":"I like to paste stuff",
"snippet":"My own paste",
"language":"text"
}
Get your twitter status time line :
benoitc@pollen:/tmp$ restcli http://XXXXXXX:XXXXXXX@twitter.com/statuses/user_timeline.json
restcli [options] url [METHOD] [filename]
--version | show program’s version number and exit |
-h, --help | show this help message and exit |
-H HEADERS, --header=HEADERS | |
http string header in the form of Key:Value. For example: “Accept: application/json” | |
-i FILE, --input=FILE | |
the name of the file to read from | |
-o OUTPUT, --output=OUTPUT | |
the name of the file to read from | |
--proxy=PROXY | Full uri of proxy, ex: http://username:password@proxy:port/ |