Android Open Source - Music-Share-Android Account A P I From Project Back to project page Music-Share-Android .
License The source code is released under:
GNU General Public License
If you think the Android project Music-Share-Android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code package com.weibo.sdk.android.api;
/ / f r o m w w w . j a v a 2 s . c o m
import android.text.TextUtils;
import com.weibo.sdk.android.Oauth2AccessToken;
import com.weibo.sdk.android.WeiboParameters;
import com.weibo.sdk.android.net.RequestListener;
/**
* ????????????????????<a href="http://open.weibo.com/wiki/API%E6%96%87%E6%A1%A3_V2#.E8.B4.A6.E5.8F.B7">????????</a>
* @author xiaowei6@staff.sina.com.cn
*
*/
public class AccountAPI extends WeiboAPI {
private static final String SERVER_URL_PRIX = API_SERVER + "/account" ;
public AccountAPI(Oauth2AccessToken accessToken) {
super (accessToken);
}
/**
* ??????????????????
* @param listener
*/
public void getPrivacy(RequestListener listener) {
WeiboParameters params = new WeiboParameters();
request( SERVER_URL_PRIX + "/get_privacy.json" , params, HTTPMETHOD_GET,listener);
}
/**
* ???????????(????keyword?capital???????????????
* ?????capital??????????province????)
* @param province ?????????ID?
* @param city ???????ID
* @param area ??????ID?
* @param type ?????1?????2?????3???????4??????5????????1?
* @param capital ??????????A?
* @param keyword ?????????
* @param count ?????????????10?
* @param listener
*/
public void schoolList( int province, int city, int area, SCHOOL_TYPE type,
CAPITAL capital, String keyword, int count,RequestListener listener) {
WeiboParameters params = new WeiboParameters();
params.add("province" , province);
params.add("city" , city);
params.add("area" , area);
params.add("type" , type.ordinal()+1);
if (!TextUtils.isEmpty(capital.name())){
params.add("capital" , capital.name());
}else if (!TextUtils.isEmpty(keyword)){
params.add("keyword" , keyword);
}
params.add("count" , count);
request( SERVER_URL_PRIX + "/profile/school_list.json" , params, HTTPMETHOD_GET,listener);
}
/**
* ????????????API?????????
* @param listener
*/
public void rateLimitStatus(RequestListener listener) {
WeiboParameters params = new WeiboParameters();
request(SERVER_URL_PRIX + "/rate_limit_status.json" , params, HTTPMETHOD_GET,listener);
}
/**
* OAuth????????????????????UID
* @param listener
*/
public void getUid(RequestListener listener) {
WeiboParameters params = new WeiboParameters();
request( SERVER_URL_PRIX + "/get_uid.json" , params, HTTPMETHOD_GET,listener);
}
/**
* ????
* @param listener
*/
public void endSession(RequestListener listener) {
WeiboParameters params = new WeiboParameters();
request( SERVER_URL_PRIX + "/end_session.json" , params, HTTPMETHOD_POST,listener);
}
}
Java Source Code List android.net.http.SslError.java com.paperairplane.music.share.AtSuggestionActivity.java com.paperairplane.music.share.Consts.java com.paperairplane.music.share.FeedbackMessage.java com.paperairplane.music.share.Main.java com.paperairplane.music.share.MusicData.java com.paperairplane.music.share.MusicListAdapter.java com.paperairplane.music.share.QueryAndShareMusicInfo.java com.paperairplane.music.share.Receiver.java com.paperairplane.music.share.SnsHelper.java com.paperairplane.music.share.cache.ImageLoader.java com.paperairplane.music.share.cache.MemoryCache.java com.paperairplane.music.share.dialogs.AboutDialogFragment.java com.paperairplane.music.share.dialogs.AbsDialogFragment.java com.paperairplane.music.share.dialogs.AuthManagerDialogFragment.java com.paperairplane.music.share.dialogs.BackgroundChooserDialogFragment.java com.paperairplane.music.share.dialogs.ChangeColorDialogFragment.java com.paperairplane.music.share.dialogs.EmptyDialogFragment.java com.paperairplane.music.share.dialogs.FeedbackDialogFragment.java com.paperairplane.music.share.dialogs.SearchDialogFragment.java com.paperairplane.music.share.dialogs.SendWeiboDialogFragment.java com.paperairplane.music.share.dialogs.ThankDialogFragment.java com.paperairplane.music.share.utils.CrashHandler.java com.paperairplane.music.share.utils.HanziToPinyin.java com.paperairplane.music.share.utils.HttpQuestHandler.java com.paperairplane.music.share.utils.IntentResolver.java com.paperairplane.music.share.utils.MyLogger.java com.paperairplane.music.share.utils.ShakeDetector.java com.paperairplane.music.share.utils.Utilities.java com.paperairplane.music.share.utils.lastfm.Album.java com.paperairplane.music.share.utils.lastfm.Artist.java com.paperairplane.music.share.utils.lastfm.Caller.java com.paperairplane.music.share.utils.lastfm.DomElement.java com.paperairplane.music.share.utils.lastfm.ImageHolder.java com.paperairplane.music.share.utils.lastfm.ImageSize.java com.paperairplane.music.share.utils.lastfm.Image.java com.paperairplane.music.share.utils.lastfm.ItemFactoryBuilder.java com.paperairplane.music.share.utils.lastfm.ItemFactory.java com.paperairplane.music.share.utils.lastfm.MapUtilities.java com.paperairplane.music.share.utils.lastfm.MusicEntry.java com.paperairplane.music.share.utils.lastfm.PaginatedResult.java com.paperairplane.music.share.utils.lastfm.ResponseBuilder.java com.paperairplane.music.share.utils.lastfm.Result.java com.paperairplane.music.share.utils.lastfm.StringUtilities.java com.paperairplane.music.share.utils.lastfm.Track.java com.weibo.sdk.android.Oauth2AccessToken.java com.weibo.sdk.android.WeiboAuthListener.java com.weibo.sdk.android.WeiboDialogError.java com.weibo.sdk.android.WeiboDialog.java com.weibo.sdk.android.WeiboException.java com.weibo.sdk.android.WeiboParameters.java com.weibo.sdk.android.Weibo.java com.weibo.sdk.android.api.AccountAPI.java com.weibo.sdk.android.api.ActivityInvokeAPI.java com.weibo.sdk.android.api.CommentsAPI.java com.weibo.sdk.android.api.CommonAPI.java com.weibo.sdk.android.api.FavoritesAPI.java com.weibo.sdk.android.api.FriendshipsAPI.java com.weibo.sdk.android.api.PlaceAPI.java com.weibo.sdk.android.api.RegisterAPI.java com.weibo.sdk.android.api.SearchAPI.java com.weibo.sdk.android.api.ShortUrlAPI.java com.weibo.sdk.android.api.StatusesAPI.java com.weibo.sdk.android.api.SuggestionsAPI.java com.weibo.sdk.android.api.TagsAPI.java com.weibo.sdk.android.api.TrendsAPI.java com.weibo.sdk.android.api.UsersAPI.java com.weibo.sdk.android.api.WeiboAPI.java com.weibo.sdk.android.net.AsyncWeiboRunner.java com.weibo.sdk.android.net.HttpManager.java com.weibo.sdk.android.net.NetStateManager.java com.weibo.sdk.android.net.RequestListener.java com.weibo.sdk.android.sso.SsoHandler.java com.weibo.sdk.android.util.BitmapHelper.java com.weibo.sdk.android.util.Utility.java