Guest User

Untitled

a guest
Jan 21st, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. package com.google.jplurk_oauth.example;
  2.  
  3. import java.util.Properties;
  4.  
  5. import com.google.jplurk_oauth.Qualifier;
  6. import com.google.jplurk_oauth.module.Timeline;
  7. import com.google.jplurk_oauth.skeleton.PlurkOAuth;
  8. import com.google.jplurk_oauth.skeleton.RequestException;
  9.  
  10. public class Example {
  11. public static void main(String[] args) throws RequestException {
  12. Properties prop = System.getProperties();
  13.  
  14. /* create oauth config */
  15. PlurkOAuth auth = new PlurkOAuth(
  16. prop.getProperty("appkey"), prop.getProperty("appsecret"),
  17. prop.getProperty("token"), prop.getProperty("tokensecret"));
  18.  
  19. auth.using(Timeline.class).plurkAdd("Hello JPlurk-OAuth", Qualifier.SAYS);
  20. }
  21. }
Add Comment
Please, Sign In to add comment