国产xxxx99真实实拍_久久不雅视频_高清韩国a级特黄毛片_嗯老师别我我受不了了小说

資訊專欄INFORMATION COLUMN

電競數(shù)據(jù)API接口 - 【英雄聯(lián)盟聯(lián)賽列表】API調(diào)用示例代碼

amc / 3085人閱讀

摘要:英雄聯(lián)盟的聯(lián)賽列表接口代碼示例,可注冊查看在線文檔英雄聯(lián)盟詳情頁聯(lián)賽列表獲取返回內(nèi)容這里為了方便測試我使用了一份本地文件,使用時應(yīng)替換為真實接口返回內(nèi)容返回數(shù)據(jù)如下部分成功亞洲洲際賽亞洲洲際賽韓國首爾歐美洲際賽歐美洲際賽洛杉磯夏季賽夏季

英雄聯(lián)盟的【聯(lián)賽列表】接口代碼示例,可注冊查看在線文檔:英雄聯(lián)盟詳情頁

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;
 
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;
 
/**
 * @API: 聯(lián)賽列表
 * @Website: https://www.feijing88.com
 */
public class LolLeague {
 
    public static void main(String[] args) {
        try {
            String content = getContent();
            Respond rsp = JSON.parseObject(content, Respond.class);
            System.out.println(rsp.code);
            System.out.println(rsp.message);
            rsp.getLeagueList().forEach(System.out::println);
 
        } catch (Throwable t) {
            t.printStackTrace();
        }
    }
 
    /**
     * 獲取API返回內(nèi)容
     * 

* Note: 這里為了方便測試我使用了一份本地文件,使用時應(yīng)替換為真實接口返回內(nèi)容 */ private static String getContent() { try { StringBuilder builder = new StringBuilder(); List lines = Files.readAllLines(Paths.get("./src/main/resources/LolLeague.json"), StandardCharsets.UTF_8); lines.forEach(builder::append); return builder.toString(); } catch (Throwable t) { t.printStackTrace(); return ""; } } public static class Respond { @JSONField(name = "code") private int code; @JSONField(name = "message") private String message; @JSONField(name = "data") private List leagueList; public int getCode() { return code; } public void setCode(int code) { this.code = code; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } public List getLeagueList() { return leagueList; } public void setLeagueList(List leagueList) { this.leagueList = leagueList; } } public static class League { @JSONField(name = "league_id") private int leagueId; @JSONField(name = "name") private String name; @JSONField(name = "name_en") private String nameEn; @JSONField(name = "short_name") private String nameShort; @JSONField(name = "start_time") private long startTime; @JSONField(name = "end_time") private long endTime; @JSONField(name = "organizer") private String organizer; @JSONField(name = "logo") private String logo; @JSONField(name = "address") private String address; @JSONField(name = "team_ids") private List teamIds; @JSONField(name = "status") private int status; @Override public String toString() { return "League{" + "leagueId=" + leagueId + ", name="" + name + """ + ", nameEn="" + nameEn + """ + ", nameShort="" + nameShort + """ + ", startTime=" + startTime + ", endTime=" + endTime + ", organizer="" + organizer + """ + ", logo="" + logo + """ + ", address="" + address + """ + ", teamIds=" + teamIds + ", status=" + status + "}"; } public void setLeagueId(int leagueId) { this.leagueId = leagueId; } public void setName(String name) { this.name = name; } public void setNameEn(String nameEn) { this.nameEn = nameEn; } public void setNameShort(String nameShort) { this.nameShort = nameShort; } public void setStartTime(long startTime) { this.startTime = startTime; } public void setEndTime(long endTime) { this.endTime = endTime; } public void setOrganizer(String organizer) { this.organizer = organizer; } public void setLogo(String logo) { this.logo = logo; } public void setAddress(String address) { this.address = address; } public void setTeamIds(List teamIds) { this.teamIds = teamIds; } public void setStatus(int status) { this.status = status; } } }

API 返回數(shù)據(jù)如下(部分):

200
成功
League{leagueId=674, name="2019 亞洲洲際賽", nameEn="Rift Rivals 2019/Asia", nameShort="2019 亞洲洲際賽", startTime=1562169600000, endTime=1562428800000, organizer="Riot", logo="http://qn.feijing88.com/feijing-home/egame/image/20190620/048a632507ff47918394d5d2c4bcb04c.png", address="韓國首爾", teamIds=[3, 708, 40, 703, 64, 787, 74, 670, 60, 813, 782, 737], status=2}
League{leagueId=675, name="2019 歐美洲際賽", nameEn="2019 RIFT RIVALS", nameShort="2019 歐美洲際賽", startTime=1561564800000, endTime=1561824000000, organizer="Riot", logo="http://qn.feijing88.com/feijing-home/egame/image/20190620/9ed7e6ab761e436daadf36f9a523b0f7.png", address="洛杉磯", teamIds=[58, 7, 69, 67, 601, 607], status=2}
League{leagueId=671, name="2019 LMS 夏季賽", nameEn="LMS 2019 Summer Split", nameShort="2019 LMS 夏季賽", startTime=1560355200000, endTime=1567094400000, organizer="Riot", logo="http://qn.feijing88.com/feijing-home/egame/image/20190607/03a5ecfb3ea844a8a111e0df855c6821.png", address="臺北", teamIds=[5, 181, 60, 781, 632, 90, 782], status=1}
League{leagueId=672, name="2019 LEC夏季賽", nameEn="LEC 2019 Summer Split", nameShort="2019 LEC夏季賽", startTime=1559836800000, endTime=1565366400000, organizer="Riot", logo="http://qn.feijing88.com/feijing-home/egame/image/20190531/bf5d954f918644cab9cda6941a89a6c8.png", address="歐洲", teamIds=[965, 669, 607, 67, 686, 601, 825, 824, 62, 660], status=1}
League{leagueId=678, name="2019 LCK夏季賽", nameEn="LCK 2019 Summer Split", nameShort="2019 LCK夏季賽", startTime=1559664000000, endTime=1567094400000, organizer="Riot", logo="http://qn.feijing88.com/feijing-home/egame/image/20190528/c69270e207ef47d7a8691658ba85ecce.png", address="韓國", teamIds=[46, 703, 4, 708, 2, 49, 40, 44, 704, 3], status=1}
League{leagueId=670, name="2019 LPL夏季賽", nameEn="LPL 2019 Summer Split", nameShort="2019 LPL夏季賽", startTime=1559318400000, endTime=1567180800000, organizer="Riot", logo="http://qn.feijing88.com/feijing-home/egame/image/20190526/f6f05d4f41e14927bf46cfc97239a1be.png", address="", teamIds=[1, 6, 64, 73, 66, 787, 63, 74, 71, 789, 677, 79, 70, 976, 722, 670], status=1}
League{leagueId=677, name="2019 LCS夏季賽", nameEn="LCS 2019 Summer Split", nameShort="2019 LCS夏季賽", startTime=1559318400000, endTime=1566662400000, organizer="Riot", logo="http://qn.feijing88.com/feijing-home/egame/image/20190526/d153eca078d44c45baf15676dc8ab270.png", address="北美", teamIds=[779, 7, 771, 68, 602, 680, 773, 778, 58, 69], status=1}
League{leagueId=662, name="2019 MSI季中冠軍賽", nameEn="2019 Mid-Season Invitational", nameShort="2019 MSI季中冠軍賽", startTime=1556640000000, endTime=1558195200000, organizer="Riot", logo="http://qn.feijing88.com/feijing-home/egame/image/20190425/cbfad96597dc4391b5e88d117c18720a.png", address="越南 臺北", teamIds=[67, 3, 653, 58, 813, 51, 119, 863, 61, 60, 614, 64, 111], status=2}
League{leagueId=669, name="2019NEST電競大賽", nameEn="2019NEST", nameShort="2019NEST", startTime=1555862400000, endTime=1558800000000, organizer="華奧CGA", logo="http://qn.feijing88.com/feijing-home/egame/image/20190419/40befc4dd6284bf78d9561db2281e226.png", address="貴陽", teamIds=[670, 71, 722, 787, 79, 64, 63, 74, 6, 73, 789, 677, 1, 66, 70], status=2}
League{leagueId=661, name="2019LCK春季升降級賽", nameEn="LCK 2019 Spring Promotion", nameShort="2019LCK春季升降級賽", startTime=1555344000000, endTime=1555776000000, organizer="Riot", logo="http://qn.feijing88.com/feijing-home/egame/image/20190411/1214da36283b411297030116180ac6cf.png", address="韓國", teamIds=[44, 49, 949, 118], status=2}

文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。

轉(zhuǎn)載請注明本文地址:http://specialneedsforspecialkids.com/yun/106432.html

相關(guān)文章

  • 電競數(shù)據(jù)API接口|英雄聯(lián)盟lol|聯(lián)賽統(tǒng)計|API調(diào)用示例代碼

    摘要:英雄聯(lián)盟聯(lián)賽統(tǒng)計在線接口文檔英雄聯(lián)盟接口,需注冊下英雄聯(lián)賽統(tǒng)計獲取返回內(nèi)容這里為了方便測試我使用了一份本地文件,使用時應(yīng)替換為真實接口返回內(nèi)容返回數(shù)據(jù)如下部分成功中單中單中單上單上單輔助中單中單輔助輔助 英雄聯(lián)盟lol聯(lián)賽統(tǒng)計在線接口文檔:英雄聯(lián)盟接口,需注冊下 import com.alibaba.fastjson.JSON; import com.alibaba.fastjson....

    olle 評論0 收藏0
  • 電競CSGO數(shù)據(jù)API接口 - 【聯(lián)賽列表API調(diào)用示例代碼

    摘要:電競的聯(lián)賽列表接口,在線接口文檔聯(lián)賽列表獲取返回內(nèi)容這里為了方便測試我使用了一份本地文件,使用時應(yīng)替換為真實接口返回內(nèi)容返回數(shù)據(jù)如下部分成功 電競CSGO的【聯(lián)賽列表】接口,在線接口文檔 import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.annotation.JSONField; import java.ni...

    microelec 評論0 收藏0
  • 電競CSGO數(shù)據(jù)API接口 - 【聯(lián)賽列表API調(diào)用示例代碼

    摘要:電競的聯(lián)賽列表接口,在線接口文檔聯(lián)賽列表獲取返回內(nèi)容這里為了方便測試我使用了一份本地文件,使用時應(yīng)替換為真實接口返回內(nèi)容返回數(shù)據(jù)如下部分成功 電競CSGO的【聯(lián)賽列表】接口,在線接口文檔 import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.annotation.JSONField; import java.ni...

    BaronZhang 評論0 收藏0
  • 電競DOTA2聯(lián)賽數(shù)據(jù)api示例代碼

    摘要:之前調(diào)用過的聯(lián)賽數(shù)據(jù)在線接口文檔定義請求數(shù)據(jù)接口參數(shù)替換成自己的替換成自己的替換成請求對應(yīng)數(shù)據(jù)的接口地址例如請求時間戳初始化請求接口參數(shù)調(diào)用電競數(shù)據(jù)接口獲取格式為字符串打印請求結(jié)果請求接口字符編碼返回字符串設(shè)置請求頭獲取當 之前調(diào)用過的DOTA聯(lián)賽數(shù)據(jù) [https://www.feijing88.com/esport] import java.io.BufferedReader; i...

    luckyw 評論0 收藏0

發(fā)表評論

0條評論

最新活動
閱讀需要支付1元查看
<