Guest User

Untitled

a guest
Jun 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. public static void main(String[] args) {
  2. Account account = new Account();
  3. PlurkAgent pa = new PlurkAgent(account);
  4. pa.login();
  5.  
  6. /*
  7. *
  8. * [DEBUG] PlurkTemplate - isOk: true, response: {"plurk":
  9. * {"responses_seen": 0, "qualifier": "asks", "plurk_id": 70772936,
  10. * "response_count": 0, "limited_to": null, "no_comments": 0,
  11. * "is_unread": 0, "lang": "tr_ch", "content_raw":
  12. * "\u665a\u4e0a\u9084\u4e0b\u96e8\u55ce?", "user_id": 3146394,
  13. * "plurk_type": 0, "id": 70772936, "content":
  14. * "\u665a\u4e0a\u9084\u4e0b\u96e8\u55ce?", "posted": new
  15. * Date("Fri, 03 Jul 2009 07:11:14 GMT"), "owner_id": 3146394}, "error":
  16. * null}
  17. */
  18. Result r = pa.addPlurk(Qualifier.FREESTYLE, "我噗了");
  19. pa.responsePlurk(Qualifier.FREESTYLE, "" + r.getAttachement().get("plurkId"), "" +r.getAttachement().get("plurkOwnerId"), "我回了");
  20.  
  21. }
Add Comment
Please, Sign In to add comment