wangy 发表于 2021-6-30 22:11:44

【Java】使用t1后端云获取最近七天天气

// 新建一个 T1CloudFeatures()
T1CloudFeatures t1CloudFeatures = new T1CloudFeatures();

// 必填项
t1CloudFeatures.put("city", "上海"); // 城市名

// 调用 cloudWeather() 方法
t1CloudFeatures.cloudWeather(new T1CloudListener() {
@Override
public void onDone(String json) {
    // 天气获取成功
    toast(json);
}

@Override
public void onError(String error) {
    // 天气获取失败
    toast(error);
}
});
页: [1]
查看完整版本: 【Java】使用t1后端云获取最近七天天气