好用android资源

  • K0_153488
    了解作者
  • 3.5MB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-04-18 04:06
    上传日期
好用android好用android好用android好用android好用android好用android好用,android好,用android
EsurfingClient.rar
内容介绍
/* Copyright (c) 2007-2009, Yusuke Yamamoto All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the Yusuke Yamamoto nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY Yusuke Yamamoto ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL Yusuke Yamamoto BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package weibo4andriod; import java.io.File; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.LinkedList; import java.util.List; import java.util.Locale; import java.util.TimeZone; import weibo4andriod.http.AccessToken; import weibo4andriod.http.HttpClientWeibo; import weibo4andriod.http.ImageItem; import weibo4andriod.http.PostParameter; import weibo4andriod.http.RequestToken; import weibo4andriod.http.Response; import weibo4andriod.org.json.JSONException; import weibo4andriod.org.json.JSONObject; /** * A java reporesentation of the <a href="http://open.t.sina.com.cn/wiki/" rel='nofollow' onclick='return false;'>Weibo API</a> */ public class Weibo extends WeiboSupport implements java.io.Serializable { public static String CONSUMER_KEY = "1819166122"; public static String CONSUMER_SECRET = "cc2b9e78491f45019be9ea4d84d16b33"; // public static String CONSUMER_KEY = "1552112022"; // public static String CONSUMER_SECRET = "bd9e3b147ece106f9cee159758a28ec1"; private String baseURL = Configuration.getScheme() + "api.t.sina.com.cn/"; private String searchBaseURL = Configuration.getScheme() + "api.t.sina.com.cn/"; private static final long serialVersionUID = -1486360080128882436L; public Weibo() { super(); format.setTimeZone(TimeZone.getTimeZone("GMT")); http.setRequestTokenURL(Configuration.getScheme() + "api.t.sina.com.cn/oauth/request_token"); http.setAuthorizationURL(Configuration.getScheme() + "api.t.sina.com.cn/oauth/authorize"); http.setAccessTokenURL(Configuration.getScheme() + "api.t.sina.com.cn/oauth/access_token"); } /** * Sets token information * @param token * @param tokenSecret */ public void setToken(String token, String tokenSecret) { http.setToken(token, tokenSecret); } public Weibo(String baseURL) { this(); this.baseURL = baseURL; } public Weibo(String id, String password) { this(); setUserId(id); setPassword(password); } public Weibo(String id, String password, String baseURL) { this(); setUserId(id); setPassword(password); this.baseURL = baseURL; } /** * Sets the base URL * * @param baseURL String the base URL */ public void setBaseURL(String baseURL) { this.baseURL = baseURL; } /** * Returns the base URL * * @return the base URL */ public String getBaseURL() { return this.baseURL; } /** * Sets the search base URL * * @param searchBaseURL the search base URL * @since Weibo4J 1.1220 */ public void setSearchBaseURL(String searchBaseURL) { this.searchBaseURL = searchBaseURL; } /** * Returns the search base url * @return search base url * @since Weibo4J 1.1220 */ public String getSearchBaseURL(){ return this.searchBaseURL; } /** * * @param consumerKey OAuth consumer key * @param consumerSecret OAuth consumer secret * @since Weibo4J 1.1220 */ public synchronized void setOAuthConsumer(String consumerKey, String consumerSecret){ this.http.setOAuthConsumer(consumerKey, consumerSecret); } /** * Retrieves a request token * @return generated request token. * @throws WeiboException when Weibo service or network is unavailable * @since Weibo4J 1.1220 * @see <a href="http://oauth.net/core/1.0/#auth_step1" rel='nofollow' onclick='return false;'>OAuth Core 1.0 - 6.1. Obtaining an Unauthorized Request Token</a> */ public RequestToken getOAuthRequestToken() throws WeiboException { return http.getOAuthRequestToken(); } public RequestToken getOAuthRequestToken(String callback_url) throws WeiboException { return http.getOauthRequestToken(callback_url); } /** * Retrieves an access token assosiated with the supplied request token. * @param requestToken the request token * @return access token associsted with the supplied request token. * @throws WeiboException when Weibo service or network is unavailable, or the user has not authorized * @see <a href="http://open.t.sina.com.cn/wiki/index.php/Oauth/access_token" rel='nofollow' onclick='return false;'>Oauth/access token </a> * @see <a href="http://oauth.net/core/1.0/#auth_step2" rel='nofollow' onclick='return false;'>OAuth Core 1.0 - 6.2. Obtaining User Authorization</a> * @since Weibo4J 1.1220 */ public synchronized AccessToken getOAuthAccessToken(RequestToken requestToken) throws WeiboException { return http.getOAuthAccessToken(requestToken); } /** * Retrieves an access token assosiated with the supplied request token and sets userId. * @param requestToken the request token * @param pin pin * @return access token associsted with the supplied request token. * @throws WeiboException when Weibo service or network is unavailable, or the user has not authorized * @see <a href="http://open.t.sina.com.cn/wiki/index.php/Oauth/access_token" rel='nofollow' onclick='return false;'>Oauth/access token </a> * @see <a href="http://oauth.net/core/1.0/#auth_step2" rel='nofollow' onclick='return false;'>OAuth Core 1.0 - 6.2. Obtaining User Authorization</a> * @since Weibo4J 1.1220 */ public synchronized AccessToken getOAuthAccessToken(RequestToken requestToken, String pin) throws WeiboException { AccessToken accessToken = http.getOAuthAccessToken(requestToken, pin); setUserId(accessToken.getScreenName()); return accessToken; } /** * Retrieves an access token assosiated with the supplied request token and sets userId. * @param token request token * @param tokenSecret request token secret * @return access token associsted with the supplied request token. * @throws WeiboException when Weibo service or network is unavailable, or the user has not authorized * @see <a href="http://open.t.sina.com.cn/wiki/index.php/Oauth/access_token" rel='nofollow' onclick='return false;'>Oauth/access token </a> * @see <a href="http://oauth.net/core/1.0/#auth_step2" rel='nofollow' onclick='return false;'>OAuth Core 1.0 - 6.2. Obtaining User Authorization</a> * @since Weibo4J 1.1220 */ public synchronized AccessToken getOAuthAccessToken(String token, String tokenSecret) throws WeiboException { AccessToken accessToken = http.getOAuthAccessToken(token, tokenSecret); setUserId(accessToken.getScreenName()); return accessToken; } /** * Retrieves an access token assosiated with the supplied request token. * @param token requ
评论
    相关推荐
    • Android学习
      Android学习Android学习Android学习Android学习Android学习Android学习
    • Android678
      Android678Android678Android678Android678Android678Android678Android678Android678Android678Android678
    • android 例子
      android 例子android 例子android 例子android 例子android 例子
    • android图片
      android精美小图片android精美小图片android精美小图片android精美小图片
    • android课件
      清华老师上课的android课件。ch_01android概述ch_02android开发基础ch_03资源的访问ch_04android用户界面ch_05Ativity和Intent。其他自己看。
    • AndroidKiller
      安卓App反编译工具AndroidKiller\AndroidKiller\AndroidKiller
    • AndroidSample
      Android示例 这是一个示例Android应用,用于降低Google Play服务和Android Volley的使用率。 有关更多详细信息,请参阅以下链接: Google Play服务: Android凌空抽射:
    • android source
      android 源代码 source android 源代码 source android 源代码 source android 源代码 source android 源代码 source android 源代码 source android 源代码 source
    • Android 教程
      Android 案例 教程,Android 案例 教程,Android 案例 教程,Android 案例 教程,Android 案例 教程,Android 案例 教程,Android 案例 教程,Android 案例 教程,Android 案例 教程,Android 案例 教程,Android ...
    • android资料
      Android程序员指南 Android_UI开发专题 Android程序开发初级教程 android的五大类各种常用类的资料整理 Android高手进阶教程