Submit link

talklittle edited this page Sep 13, 2010 · 1 revision

Should be similar to replies CommentReplyTask

www.reddit.com/api/submit

After posting, takes you to the CommentsList.
so, in reddit is fun:
1. RedditIsFun => Submit link
2. Submit link => return new id to RedditIsFun
3. RedditIsFun => RedditCommentsListActivity

Self:

POSTDATA=uh=pq5cfcbbm53b81007834513e598b0488cc7d5c7097748b286c&kind=self&thing_id=&sr=test&title=hello%0Ayo&text=byebye%0Aseeya&id=%23newlink&r=test

Response:
{"jquery": 0, 1, "call", ["#newlink", [1, 2, “attr”, “find”], [2, 3, “call”, [“.status”]], [3, 4, “attr”, “hide”], [4, 5, “call”, []], [5, 6, “attr”, “html”], [6, 7, “call”, [""]], [7, 8, “attr”, “end”], [8, 9, “call”, []], [1, 10, “attr”, “captcha”], [10, 11, “call”, [“8rXQvLUWXYsnrRHIYbQeoK2Ye7kaQaZ3”]], [1, 12, “attr”, “redirect”], [12, 13, “call”, [“http://www.reddit.com/r/test/comments/9cz6s/hello_yo/”]]]}

Link:

POSTDATA=uh=he4232h88lbde5cc76e7ee766160817fe88658a4c6b0d93f18&kind=link&url=www.reddit.com%2Fr%2Ftest&sr=test&title=test+link&id=%23newlink&r=test

{"jquery": 0, 1, "call", ["#newlink", [1, 2, “attr”, “find”], [2, 3, “call”, [“.status”]], [3, 4, “attr”, “hide”], [4, 5, “call”, []], [5, 6, “attr”, “html”], [6, 7, “call”, [""]], [7, 8, “attr”, “end”], [8, 9, “call”, []], [1, 10, “attr”, “captcha”], [10, 11, “call”, [“C1qGO9HW21tfuE1csA8XazbD2K5qZJpx”]], [1, 12, “attr”, “find”], [12, 13, “call”, [“*[name=url]”]], [13, 14, “attr”, “attr”], [14, 15, “call”, [“value”, “http://www.reddit.com/r/test”]], [15, 16, “attr”, “end”], [16, 17, “call”, []], [1, 18, “attr”, “redirect”], [18, 19, “call”, [“http://www.reddit.com/r/test/comments/9d3m1/test_link/”]]]}

Captcha:

POSTDATA=uh=63vnf25yunc657b59702172c9fd8f58096de4a5c4b0ddc456b&kind=self&thing_id=&sr=test&iden=Gu5WeWVH088HmecSBm2z8xoIcjBa2Q7O&captcha=bsyshv&title=test+captcha&text=i+am+human&id=%23newlink