Exemplo n.º 1
0
 public static void main(String[] args) {
   String access_token = args[0];
   Search search = new Search();
   search.client.setToken(access_token);
   try {
     search.searchSuggestionsUsers(args[1]);
   } catch (WeiboException e) {
     e.printStackTrace();
   }
 }
 public static void main(String[] args) {
   String access_token = args[0];
   String q = args[1];
   Search search = new Search(access_token);
   try {
     JSONArray jo = search.searchSuggestionsCompanies(q);
     System.out.println(jo.toString());
   } catch (WeiboException e) {
     e.printStackTrace();
   }
 }