// banner
? ? implementation 'com.youth.banner:banner:1.4.10'
? ? //? ? recyclerview
? ? implementation 'androidx.recyclerview:recyclerview:1.0.0'
? ? //萬(wàn)能適配器
? ? implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.0'
? ? //3D地圖so及jar
? ? implementation 'com.amap.api:3dmap:latest.integration'
? ? //定位功能
? ? implementation 'com.amap.api:location:latest.integration'
? ? //搜索功能
? ? implementation 'com.amap.api:search:latest.integration'
? ? //GSON
? ? implementation 'com.squareup.retrofit2:converter-gson:2.6.2'
? ? //OkGo
? ? implementation 'com.lzy.net:okgo:3.0.4'
? ? //網(wǎng)絡(luò)框架
? ? implementation 'com.squareup.okhttp3:okhttp:3.12.1'
? ? //日志攔截器
? ? implementation 'com.squareup.okhttp3:logging-interceptor:3.11.0'
? ? //recyclerview間隔線
? ? implementation 'com.yanyusong.y_divideritemdecoration:y_divideritemdecoration:2.0'
? ? //recyclerview動(dòng)畫
? ? implementation 'jp.wasabeef:recyclerview-animators:4.0.2'
? ? //核心必須依賴
? ? implementation 'com.scwang.smart:refresh-layout-kernel:2.0.3'
? ? //經(jīng)典刷新頭
? ? implementation 'com.scwang.smart:refresh-header-classics:2.0.3'
? ? //底部菜單
? ? implementation 'com.github.chaychan:BottomBarLayout:2.0.2'
? ? //FlyTabLayout
? ? implementation 'com.flyco.tablayout:FlycoTabLayout_Lib:2.1.2@aar'
? ? //裁剪圖片的快捷方法
? ? implementation 'com.github.wildma:PictureSelector:2.1.0'
? ? https://github.com/wildma/PictureSelector
? ? maven { url "https://jitpack.io" }
? ? //Glide圖片框架
? ? implementation'com.github.bumptech.glide:glide:4.5.0'
? ? compile? 'com.umeng.umsdk:common:9.4.0'//必選
? ? compile? 'com.umeng.umsdk:asms:1.2.3'//必選
? ? implementation? 'com.umeng.umsdk:share-core:7.1.5'//分享核心庫(kù),必選
? ? implementation? 'com.umeng.umsdk:share-board:7.1.5'//分享面板功能,可選
? ? implementation 'com.umeng.umsdk:share-qq:7.1.5'//QQ完整版
? ? implementation 'com.tencent.tauth:qqopensdk:3.53.0'//QQ官方依賴庫(kù),必選
? ? implementation 'com.squareup.okhttp3:okhttp:3.12.12'//QQ SDK在3.53.0版本及以上時(shí)需要集成
//ARouter
android {
? ? defaultConfig {
? ? ? ? ...
? ? ? ? javaCompileOptions {
? ? ? ? ? ? annotationProcessorOptions {
? ? ? ? ? ? ? ? arguments = [AROUTER_MODULE_NAME: project.getName()]
? ? ? ? ? ? }
? ? ? ? }
? ? }
}
dependencies {
? ? // 替換成最新版本, 需要注意的是api
? ? // 要與compiler匹配使用,均使用最新版可以保證兼容
? ? //compile 'com.alibaba:arouter-api:x.x.x'
? ? //annotationProcessor 'com.alibaba:arouter-compiler:x.x.x'
? ? implementation 'com.alibaba:arouter-api:1.5.1'
? ? annotationProcessor 'com.alibaba:arouter-compiler:1.5.1'
}
? ? // 舊版本gradle插件(< 2.2),可以使用apt插件,配置方法見文末'其他#4'
? // Kotlin配置參考文末'其他#5'
? //二維碼
? ZXingLibrary.initDisplayOpinion(this);
? //Application中執(zhí)行初始化操作?
? ZXingLibrary.initDisplayOpinion(this);
? ? //工具類
? ? implementation 'com.blankj:utilcode:1.30.6'
? //RXjava
? ? api 'io.reactivex.rxjava2:rxjava:2.2.6'
? ? api 'io.reactivex.rxjava2:rxandroid:2.1.1'
? //線程異常任務(wù)調(diào)度
? ? api 'com.squareup.retrofit2:adapter-rxjava2:2.6.2'
? //網(wǎng)絡(luò)請(qǐng)求封裝框架
? ? api 'com.squareup.retrofit2:retrofit:2.6.2'
? //注解框架
? ? api 'com.google.dagger:dagger:2.17'
? ? annotationProcessor 'com.google.dagger:dagger-compiler:2.17'
專高三常用框架
PS:api是復(fù)用,注解框架不能復(fù)用
? ? api 'com.blankj:utilcode:1.30.6'
? ? api 'com.google.dagger:dagger:2.17'
? ? annotationProcessor 'com.google.dagger:dagger-compiler:2.17'
? ? api 'io.reactivex.rxjava2:rxjava:2.2.6'
? ? api 'io.reactivex.rxjava2:rxandroid:2.1.1'
? ? //網(wǎng)絡(luò)框架
? ? api 'com.squareup.okhttp3:okhttp:3.12.1'
? ? //日志攔截器
? ? api 'com.squareup.okhttp3:logging-interceptor:3.11.0'
? ? //網(wǎng)絡(luò)請(qǐng)求封裝框架
? ? api 'com.squareup.retrofit2:retrofit:2.6.2'
? ? //網(wǎng)絡(luò)請(qǐng)求對(duì)象解析器
? ? api 'com.squareup.retrofit2:converter-gson:2.6.2'
? ? //線程異常任務(wù)調(diào)度
? ? api 'com.squareup.retrofit2:adapter-rxjava2:2.6.2'
? ? //Glide圖片框架
? ? implementation 'com.github.bumptech.glide:glide:4.12.0'
? ? annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
? ? compile 'cn.yipianfengye.android:zxing-library:2.2'
1.創(chuàng)建工程,創(chuàng)建包(命名規(guī)范)(5分)
2.SlidingMenu框架整合(5分)
3.抽屜菜單中有4個(gè)button(5分)
4.點(diǎn)擊button1顯示fragment1(5分)
5.點(diǎn)擊button2顯示fragment2(5分)
6.點(diǎn)擊button3顯示fragment3(5分)
7.點(diǎn)擊button4顯示fragment4(5分)
8.fragment顯示隱藏方式切換(5分)
9.MVP架構(gòu)封裝(5分)
10.RX全家桶框架導(dǎo)入(5分)
11.單例網(wǎng)絡(luò)框架封裝RX全家桶(5分)
12.Glide框架導(dǎo)入(5分)
13.Fragment1請(qǐng)求油燜大蝦接口獲取數(shù)據(jù)(5分)
14.Fragment1使用recyclerview展示油燜大蝦數(shù)據(jù)(5分)
15.Fragment2自定義View繪制圓(5分)
16.Fragment3自定義View繪制直線(5分)
17.Fragment4自定義View繪制一行文字為HelloWord(5分)
18.Fragment2自定義View繪制一個(gè)環(huán)形(5分)
19.Fragment3自定義View繪制三角形(5分)
20.最后結(jié)束錄屏前演示效果,并代碼講解(5分)
登錄
https://www.wanandroid.com/user/login
方法:POST
參數(shù):
username,password
注冊(cè)
https://www.wanandroid.com/user/register
方法:POST
參數(shù)
username,password,repassword
? ? implementation 'com.google.android.material:material:1.1.0'
? ? //高德地圖
? implementation 'com.amap.api:3dmap:latest.integration'//M
? implementation 'com.amap.api:location:latest.integration'//apView
? ? //歌詞的依賴三方庫(kù)
? ? implementation 'com.github.Lauzy:LyricView:1.0.4'
? ? maven { url 'https://jitpack.io' }
? ? //TabLayout依賴
<com.google.android.material.tabs.TabLayout></com.google.android.material.tabs.TabLayout>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
* 獲取圖庫(kù):(讀sd卡的權(quán)限)
? ? * (1)uri:MediaStore.Images.Media.EXTERNAL_CONTENT_URI
? ? * (2)字段:
? ? requestPermissions(new String[]{
? ? ? Manifest.permission.WRITE_EXTERNAL_STORAGE,
? ? ? Manifest.permission.WRITE_EXTERNAL_STORAGE
? ? ? Manifest.permission.RAED_SMS
? ? ? Manifest.permission.RAED_CONTACTS
? ? ? Manifest.permission.CALL_PHONE},100);
MediaStore.Images.Media.TITLE; 圖片名稱
MediaStore.Images.Media.SIZE; 大小
MediaStore.Images.Media.DATA; 地址
MediaStore.Images.Media.HEIGHT; 高
MediaStore.Images.Media.WIDTH; 寬
? ? ? ? Insert into food values(?,?,?)
* 獲取視頻:(讀sd卡的權(quán)限)
? ? * (1)uri:MediaStore.Video.Media.EXTERNAL_CONTENT_URI
? ? * (2)字段:TITLE:歌名? ARTIST 歌手? DURATION 總時(shí)長(zhǎng)? DATA 地址 SIZE 大小
? ? ? DataBeans.DataBean wtable: beans
MediaStore.Video.Media.TITLE, 歌名
MediaStore.Video.Media.ARTIST, ? ? ? ? 歌手
MediaStore.Video.Media.DURATION, 總時(shí)長(zhǎng)
MediaStore.Video.Media.DATA, 地址
MediaStore.Audio.Media.SIZE}; 大小
? ? ? ? Delete from cart where id = ?
*獲取音頻 : (讀sd卡的權(quán)限) -----------///////////---------------------
? ? * (1)uri:MediaStore.Audio.Media.EXTERNAL_CONTENT_URI
? ? * (2)字段:TITLE:歌名? ARTIST 歌手? DURATION 總時(shí)長(zhǎng)? DATA 地址? SIZE 大小
MediaStore.Audio.Media.TITLE, 歌名
MediaStore.Audio.Media.ARTIST, ? ? ? ? 歌手
MediaStore.Audio.Media.DURATION, 總時(shí)長(zhǎng)
MediaStore.Audio.Media.DATA, ? ? ? ? 地址
MediaStore.Audio.Media.SIZE,? ? ? ? ? ? 大小
MediaStore.Audio.Media.ALBUM_ID,? ? ? ? 專輯封面的id
};
? ? ? ? "content://media/external/audio/albums/"+專輯封面的id;? ? ? ? 專輯封面的uri
封面字段:album_art
*獲取聯(lián)系人: (讀聯(lián)系人的權(quán)限)
? ? * (1)uri:ContactsContract.CommonDataKinds.Phone.CONTENT_URI
? ? * (2)字段:Phone.DISPLAY_NAME 姓名? ? ? NUMBER 電話
ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME, 姓名
ContactsContract.CommonDataKinds.Phone.NUMBER; 電話
*獲取短信: (讀短信的權(quán)限)
? ? * (1)uri:Telephony.Sms.CONTENT_URI
? ? * (2)字段:ADDRESS 地址 BODY 內(nèi)容
Telephony.Sms.ADDRESS, 地址
Telephony.Sms.BODY; 內(nèi)容
*通話記錄:
? ? 獲取通話記錄:
uri:CallLog.Calls.CONTENT_URI
字段:CallLog.Calls.NUMBER:電話號(hào)碼
CallLog.Calls.DATE:時(shí)間
CallLog.Calls.TYPE:類型(1.拔打 2.接聽? 3.錯(cuò)過)
? CallLog.Calls.DURATION:時(shí)長(zhǎng)
視頻鏈接==============================
loadUrl("file:///android_asset/h5.html");
public static String[] video = {
? ? ? ? ? ? "http://vfx.mtime.cn/Video/2019/03/18/mp4/190318214226685784.mp4",
? ? ? ? ? ? "http://vfx.mtime.cn/Video/2019/03/19/mp4/190319104618910544.mp4",
? ? ? ? ? ? "http://vfx.mtime.cn/Video/2019/03/19/mp4/190319125415785691.mp4",
? ? ? ? ? ? "http://vfx.mtime.cn/Video/2019/03/17/mp4/190317150237409904.mp4",
? ? ? ? ? ? "http://vfx.mtime.cn/Video/2019/03/14/mp4/190314223540373995.mp4",
? ? ? ? ? ? "http://vfx.mtime.cn/Video/2019/03/14/mp4/190314102306987969.mp4",
? ? ? ? ? ? "http://vfx.mtime.cn/Video/2019/03/13/mp4/190313094901111138.mp4",
? ? ? ? ? ? "http://vfx.mtime.cn/Video/2019/03/12/mp4/190312143927981075.mp4",
? ? ? ? ? ? "http://vfx.mtime.cn/Video/2019/03/12/mp4/190312083533415853.mp4",
? ? ? ? ? ? "http://vfx.mtime.cn/Video/2019/03/09/mp4/190309153658147087.mp4",
? ? };
清單文件中:
所有權(quán)限:
? ? <uses-permission android:name="android.permission.INTERNET"/>
? ? <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
? ? <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
? ? <uses-permission android:name="android.permission.READ_CONTACTS"/>
? ? <uses-permission android:name="android.permission.READ_SMS"></uses-permission>
? ? <uses-permission android:name="android.permission.CALL_PHONE"></uses-permission>
? ? <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
? ? <uses-permission android:name="android.permission.CALL_PHONE" />
? ? <uses-permission android:name="android.permission.CAMERA"/>
? ? <!--允許程序打開網(wǎng)絡(luò)套接字-->
? ? <uses-permission android:name="android.permission.INTERNET" />
? ? <!--允許程序獲取網(wǎng)絡(luò)狀態(tài)-->
? ? <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
? ? <!--允許程序訪問WiFi網(wǎng)絡(luò)信息-->
? ? <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
? ? <!--允許程序讀寫手機(jī)狀態(tài)和身份-->
? ? <uses-permission android:name="android.permission.READ_PHONE_STATE" />
? ? <!--允許程序訪問CellID或WiFi熱點(diǎn)來獲取粗略的位置-->
? ? <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
? ? <!-- 定位? 沒有這個(gè)定位獲取不到 -->
? ? <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
聯(lián)網(wǎng)的權(quán)限:
<uses-permission android:name="android.permission.INTERNET"/>
寫SD卡權(quán)限:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
讀SD卡權(quán)限:
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
讀取聯(lián)系人的權(quán)限:
<uses-permission android:name="android.permission.READ_CONTACTS"/>
讀取短信的權(quán)限:
<uses-permission android:name="android.permission.READ_SMS"></uses-permission>
打電話
<uses-permission android:name="android.permission.CALL_PHONE"></uses-permission>
讀取通話記錄的權(quán)限:
<uses-permission android:name="android.permission.WRITE_CALL_LOG"/>
<uses-permission android:name="android.permission.READ_CALL_LOG"/>
練習(xí)的鏈接
http://v.juhe.cn/toutiao/index?type=top&key=e3080ff4a57ed090c999dc0d9082dce4
--------
recyclerview
implementation 'androidx.recyclerview:recyclerview:1.0.0'
----------------------
localBroadcastManager
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
---------------------
依賴導(dǎo)入
Glide
implementation 'com.github.bumptech.glide:glide:4.5.0'
Gson
implementation 'com.google.code.gson:gson:2.8.2'
picasso
implementation 'com.squareup.picasso:picasso:2.5.2'
Fastjson
implementation 'com.alibaba:fastjson:1.2.41'
導(dǎo)入tablayout
implementation 'com.android.support:design:30.0.0'
okhttp
implementation 'com.squareup.okhttp3:okhttp:4.1.0'
eventbus
implementation 'org.greenrobot:eventbus:3.2.0'
banner
implementation 'com.youth.banner:banner:1.4.10'
獲取手機(jī)聯(lián)系人,展現(xiàn)在ListView中并存儲(chǔ)到數(shù)據(jù)庫(kù)中
拼音轉(zhuǎn)換字母
implementation 'com.github.stuxuhai:jpinyin:1.0'
添加阿里云的鏡像
maven {
? ? ? ? ? ? url "http://maven.aliyun.com/nexus/content/groups/public/"
? ? ? ? }
大蝦串
http://www.qubaobei.com/ios/cf/dish_list.php?stage_id=1&limit=20&page=1
//歌曲
關(guān)鍵字搜索
http://musicapi.leanapp.cn/search/suggest?keywords=鄧紫棋
根據(jù)歌曲id搜索歌的地址
http://musicapi.leanapp.cn/music/url?id=1405283464
okhttp
implementation ‘com.squareup.okhttp3:okhttp:3.12.1’
一。網(wǎng)易云接口:
api
https://binaryify.github.io/NeteaseCloudMusicApi/#/?id=neteasecloudmusicapi
http://m10.music.126.net/20200606190736/42a96a48754a63f5c4a19242f37b69d6/ymusic/76e5/ba34/d562/2e95d6640354faee9ef0d6a384d2bc5f.mp3
關(guān)鍵字搜索
http://gaohui628.top:3000/search/suggest?keywords=鄧紫棋
根據(jù)歌曲id搜索歌的地址
http://gaohui628.top:3000/music/url?id=36270426
http://gaohui628.top:3000/song/media?id=27955653
根據(jù)歌曲id獲得評(píng)論:
http://musicapi.leanapp.cn/comment/music?id=233931&limit=10
獲得歌曲id獲得歌詞:
http://music.163.com/api/song/media?id=27955653
根據(jù)歌曲id獲得mv:
http://musicapi.leanapp.cn/mv/detail?mvid=503273
根據(jù)mvid獲得mv評(píng)論:
http://musicapi.leanapp.cn/comment/mv?id=221004
輪播圖
http://musicapi.leanapp.cn/banner
http://vueshop.glbuys.com/api/home/index/slide?token=1ec949a15fb709370f
//友盟的值
defaultConfig {
? ? ? ? applicationId "com.bawei.maptest"
? ? ? ? minSdkVersion 25
? ? ? ? targetSdkVersion 30
? ? ? ? versionCode 1
? ? ? ? versionName "1.0"
? ? ? ? ndk {
? ? ? ? ? ? //設(shè)置支持的SO庫(kù)架構(gòu)(開發(fā)者可以根據(jù)需要,選擇一個(gè)或多個(gè)平臺(tái)的so)
? ? ? ? ? ? abiFilters "armeabi", "armeabi-v7a", "arm64-v8a", "x86","x86_64"
? ? ? ? }
? ? ? ? testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
? ? ? ? manifestPlaceholders=[qqappid:""]
? ? }
//Applocation里
// QQ設(shè)置
? ? ? ? PlatformConfig.setQQZone("101830139","5d63ae8858f1caab67715ccd6c18d7a5");
? ? ? ? PlatformConfig.setQQFileProvider("com.tencent.sample2.fileprovider");
? ? ? ? UMConfigure.init(this,"自己的Key","baweiliuchangyu",UMConfigure.DEVICE_TYPE_PHONE,"");
? ? ? ? UMConfigure.setLogEnabled(true);
友盟的值
? <meta-data android:value="${UMENG_CHANNEL_VALUE}" android:name="UMENG_CHANNEL"/>
androidx的依賴
1、CardView
implementation 'androidx.cardview:cardview:1.0.0'
2、TabLayout
implementation 'com.google.android.material:material:1.0.0'
3、RecycleView
implementation 'androidx.recyclerview:recyclerview:1.0.0'
4、Snackbar
implementation 'com.google.android.material.snackbar.Snackbar:1.0.0-rc01'
5、swiperefreshlayout
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0'
6、viewpager
implementation 'androidx.viewpager:viewpager:1.0.0'
7、design ui 庫(kù)
implementation 'com.google.android.material:material:1.0.0-rc01'
8、coordinatorlayout
implementation 'androidx.coordinatorlayout:coordinatorlayout:1.0.0'
9、constraintlayout 約束布局
implementation 'androidx.constraintlayout:constraintlayout:1.1.2'
10、NavigationView 側(cè)滑
implementation 'com.google.android.material.navigation.NavigationView:1.0.
private List<DataBeans.DataBean> SelectCar() {
? ? ? ? List<DataBeans.DataBean> list=new ArrayList<>();
? ? ? ? SLite2 sLite2=new SLite2(getActivity(),"car09.db",null,1);
? ? ? ? SQLiteDatabase writableDatabase = sLite2.getWritableDatabase();
? ? ? ? Cursor cursor = writableDatabase.query("car", null, null, null, null, null, null);
? ? ? ? while (cursor.moveToNext()){
? ? ? ? ? ? String id = cursor.getString(cursor.getColumnIndex("id"));
? ? ? ? ? ? String tittle = cursor.getString(cursor.getColumnIndex("tittle"));
? ? ? ? ? ? String pic = cursor.getString(cursor.getColumnIndex("pic"));
? ? ? ? ? ? DataBeans.DataBean dataBean=new DataBeans.DataBean();
? ? ? ? ? ? dataBean.setId(id);
? ? ? ? ? ? dataBean.setTitle(tittle);
? ? ? ? ? ? dataBean.setPic(pic);
? ? ? ? ? ? list.add(dataBean);
? ? ? ? }
? ? ? ? return list;
? ? }
SLite2 sLite2=new SLite2(getActivity(),"car09.db",null,1);
SQLiteDatabase readableDatabase = sLite2.getReadableDatabase();
readableDatabase.execSQL("insert into car values(?,?,?)",new Object[]{beans.get(position).getId(),beans.get(position).getTitle(),beans.get(position).getPic()});
Toast.makeText(getActivity(), "添加成功", Toast.LENGTH_SHORT).show();? ? ? ?
常用網(wǎng)址
騰訊云推拉流地址生成:https://lvb.qcloud.com/weapp/utils/get_test_pushurl
央視直播流:
http://ivi.bupt.edu.cn/hls/cctv1hd.m3u8
http://ivi.bupt.edu.cn/hls/cctv3hd.m3u8
http://ivi.bupt.edu.cn/hls/cctv5hd.m3u8
http://ivi.bupt.edu.cn/hls/cctv5phd.m3u8
http://ivi.bupt.edu.cn/hls/cctv6hd.m3u8
--------------------------------------------------------------------------------------------------------
調(diào)試版本高德地圖獲得SHA1序列號(hào):keytool -v -list -keystore? ? ? C:\Users\許善雄\.android\debug.keystore(換成自己的路徑)
高德地圖獲得SHA1序列號(hào):keytool -v -list -keystore /Users/ytx0904/.android/debug.keystore
a。生成一個(gè)密鑰口令:keytool -genkey -alias key.keystore -keyalg RSA -validity 365 -keystore key.keystore
b。生成位置:在你的項(xiàng)目文件夾中
c。打開terminal:keytool -list -v -keystore key.keystore
--------------------------------------------------------------------------------------------------
一.百思不得姐:
http://api.budejie.com/api/api_open.php?a=list&c=data&type=1&page=1
.addHeader("User-Agent","PostmanRuntime/7.26.1")
page : 頁(yè)碼 (加載下一頁(yè)需要)
maxtime : 獲取到的最后一條數(shù)據(jù)的maxtime字段 (加載下一頁(yè)需要)
https://route.showapi.com/255-1?showapi_appid=365651&showapi_sign=54519f6b92b446dabeca3a6f09966616
54519f6b92b446dabeca3a6f09966616? 365651
type=1 : 全部
type=41 : 視頻
type=10 : 圖片
type=29 : 段子
type=31 : 聲音
評(píng)論列表 http://api.budejie.com/api/api_open.php?a=dataList&c=comment&data_id=31396265&hot=1
data_id : 帖子ID
hot : 獲取到最熱評(píng)論需要這個(gè)字段
page : 頁(yè)碼 (加載下一頁(yè)需要)
lastcid : 獲取到的最后一條評(píng)論的ID(加載下一頁(yè)需要)
http://api.yunzhancn.cn/api/app.interface.php?siteid=78703&itemid=2&act=ad_app
二。新聞
頭條:http://v.juhe.cn/toutiao/index?type=top&key=3dc86b09a2ee2477a5baa80ee70fcdf5
國(guó)內(nèi):http://v.juhe.cn/toutiao/index?type=guonei&key=3dc86b09a2ee2477a5baa80ee70fcdf5
http://apibiji.damoxueyuan.top/
三。網(wǎng)易云接口:
關(guān)鍵字搜索
http://musicapi.leanapp.cn/search/suggest?keywords=鄧紫棋
根據(jù)歌曲id搜索歌的地址
http://musicapi.leanapp.cn/music/url?id=1405283464
http://gaohui628.top:3000/music/url?id=36270426
http://gaohui628.top:3000/song/media?id=27955653
根據(jù)歌曲id獲得評(píng)論:
http://musicapi.leanapp.cn/comment/music?id=233931&limit=10
獲得歌曲id獲得歌詞:
http://music.163.com/api/song/media?id=27955653
根據(jù)歌曲id獲得mv:
http://musicapi.leanapp.cn/mv/detail?mvid=503273
根據(jù)mvid獲得mv評(píng)論:
http://musicapi.leanapp.cn/comment/mv?id=221004
輪播圖
http://musicapi.leanapp.cn/banner
http://vueshop.glbuys.com/api/home/index/slide?token=1ec949a15fb709370f
四。登陸接口:要求使用okhttp完成post請(qǐng)求,瀏覽器不能測(cè)試post請(qǐng)求
https://www.wanandroid.com/user/login
方法:POST
參數(shù):username,password
五。注冊(cè)接口:要求使用okhttp完成post請(qǐng)求,瀏覽器不能測(cè)試post請(qǐng)求
https://www.wanandroid.com/user/register
方法:POST
參數(shù):username,password,repassword
六。油燜大蝦:
七。上傳文件地址:http://117.51.155.210/hfs/
七。圖片網(wǎng)址:https://dss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2858426577,4189650377&fm=26&gp=0.jpg
八。音樂網(wǎng)址:http://m10.music.126.net/20190928113350/b386ce0830ba08cb5cf1f91742e7e80c/ymusic/b854/e1ff/e7c1/653c638e24580e2869184c592a370056.mp3
九。視頻網(wǎng)址:
http://vfx.mtime.cn/Video/2019/03/18/mp4/190318214226685784.mp4
http://vfx.mtime.cn/Video/2019/03/19/mp4/190319104618910544.mp4
http://vfx.mtime.cn/Video/2019/03/19/mp4/190319125415785691.mp4
http://vfx.mtime.cn/Video/2019/03/17/mp4/190317150237409904.mp4
http://vfx.mtime.cn/Video/2019/03/14/mp4/190314223540373995.mp4
http://vfx.mtime.cn/Video/2019/03/14/mp4/190314102306987969.mp4
http://vfx.mtime.cn/Video/2019/03/13/mp4/190313094901111138.mp4
http://vfx.mtime.cn/Video/2019/03/12/mp4/190312143927981075.mp4
http://vfx.mtime.cn/Video/2019/03/12/mp4/190312083533415853.mp4
http://vfx.mtime.cn/Video/2019/03/09/mp4/190309153658147087.mp4
十。gif圖:http://5b0988e595225.cdn.sohucs.com/images/20180523/93c796f46fd5417a9af7ba0b9ae87627.gif
webp圖片:http://asgard.image.mucang.cn/asgard/2017/12/28/10/45ab2f68a13546c1914b61d54160b8ae.webp
十一。斷點(diǎn)續(xù)傳設(shè)置請(qǐng)求頭:
Range:bytes=起始位置-終點(diǎn)位置
比如:Range:bytes=0-100
十二。上傳文件:post請(qǐng)求
1.設(shè)置請(qǐng)求頭信息:
Content-Length:請(qǐng)求體的總長(zhǎng)度
Content-Type:multipart/form-data; boundary=7e324741816d4
2.請(qǐng)求體:2部分
第一部分:要有換行
-----------------------------7e324741816d4
Content-Disposition: form-data; name="file"; filename="上傳到服務(wù)器的名字"
Content-Type: media/mp4或者media/mp3或者image/mp3或者image/png
空行
第二部分:需要上傳的文件:邊讀邊寫