> 需要最新2018年全国各省市区县JSON数据丶天气素材,收费5元(写代码很辛苦的)
**简要描述:**
- 获取本地天气或手动地址
* * * * *
**请求URL:**
- ` http://api.guaqb.cn/v1/weather `
**请求方式:**
- POST
**参数:**
|参数名|必选|类型|说明|
|:---- |:---|:----- |----- |
|key|是 |string |key |
|my|是 |string |密钥 |
|token|是 |string |令牌 |
|time|是 |int |过期时间 |
|province|否 |string|省级 |
|city|否 |string |市级 |
|district|否 |string |县区级 |
|manual|否 |int|手动地址 |
|today|否 |int |一天天气 ,没有该参数是一周天气|
> 一天天气返回示例
*****
[{"city":"泰和县","alarm":"江西省气象台2018年10月11日06时40分发布大雾黄色预警信号:目前宜春、鹰潭、萍乡、吉安、抚州、上饶、新余七市的部分地区已出现大雾天气,预计未来3-4小时大雾仍将持续,请注意防范。(预警信息来源:国家预警信息发布中心)","day_weather":"多云","night_weather":"晴","min_degree":"14","max_degree":"24","day_wind":"3","day_wind_direction":"北风","sunrise":"06:19","sunset":"17:57","aqi":52,"aqi_name":"良","limit_tail":"","now_pressure":"1014","now_humidity":"50","now_degree":"18","now_weather_short":"多云","now_wind_power":"1","now_wind_direction":"8","now_precipitation":"0.0","update_time":"2018-10-11 19:45:00","airconditioner":"您将感到很舒适,一般不需要开启空调。","allergy":"天气条件易诱发过敏,易过敏人群应减少外出,外出宜穿长衣长裤并佩戴好眼镜和口罩,外出归来时及时清洁手和口鼻。","carwash":"较适宜洗车,未来一天无雨,风力较小,擦洗一新的汽车至少能保持一天。","clothes":"建议着长袖T恤、衬衫加单裤等服装。年老体弱者宜着针织长袖衬衫、马甲和长裤。","cold":"昼夜温差较大,较易发生感冒,请适当增减衣服。体质较弱的朋友请注意防护。","sunscreen":"属中等强度紫外辐射天气,外出时应注意防护,建议涂擦SPF指数高于15,PA+的防晒护肤品。","umbrella":"天气较好,您在出门的时候无须带雨伞。","tourism":"天气较好,温度适宜,是个好天气哦。这样的天气适宜旅游,您可以尽情地享受大自然的风光。","sports":"天气较好,赶快投身大自然参与户外运动,尽情感受运动的快乐吧。","drying":"天气较好,赶快投身大自然参与户外运动,尽情感受运动的快乐吧。","tips":"现在的温度比较凉爽~","time":"2018-10-11"}]`
*****
> 七天天气返回示例
[{"city":"泰和县","day_weather":"小雨","night_weather":"阴","min_degree":"14","max_degree":"21","day_wind":"3","day_wind_direction":"北风","time":"2018-10-10"},{"city":"泰和县","day_weather":"多云","night_weather":"晴","min_degree":"14","max_degree":"24","day_wind":"3","day_wind_direction":"北风","time":"2018-10-11"},{"city":"泰和县","day_weather":"晴","night_weather":"多云","min_degree":"13","max_degree":"24","day_wind":"3","day_wind_direction":"北风","time":"2018-10-12"},{"city":"泰和县","day_weather":"小雨","night_weather":"小雨","min_degree":"14","max_degree":"22","day_wind":"3","day_wind_direction":"北风","time":"2018-10-13"},{"city":"泰和县","day_weather":"小雨","night_weather":"中雨","min_degree":"16","max_degree":"19","day_wind":"3","day_wind_direction":"北风","time":"2018-10-14"},{"city":"泰和县","day_weather":"中雨","night_weather":"小雨","min_degree":"16","max_degree":"19","day_wind":"3","day_wind_direction":"北风","time":"2018-10-15"},{"city":"泰和县","day_weather":"小雨","night_weather":"阴","min_degree":"17","max_degree":"20","day_wind":"3","day_wind_direction":"北风","time":"2018-10-16"},{"city":"泰和县","day_weather":"多云","night_weather":"多云","min_degree":"16","max_degree":"24","day_wind":"3","day_wind_direction":"北风","time":"2018-10-17"}]
*****
**返回参数说明**
参数太多我不想解释,自己百度英文意思吧!
给你们百度翻译地址,不要来找我哦,我很凶的,我自己都怕自己😀
https://fanyi.baidu.com/?aldtype=16047#auto/zh
> 这个接口必须使用 token令牌,可以有效防止抓包
~~~
IAPP代码,仅供测试环境下使用
t()
{
s today=1
//一天的天气 留空是获取一周天气
s manual=1
//手动地址 留空自动获取IP地址
s province="安徽省"
//省级
s city="芜湖市"
//市级
s district="芜湖县"
//县级
s otime=30
//过期时间 建议不小于5s ,网络环境会影响time值的差距
s key=""
//这里输入key
s my=""
//这里输入my
time(4,a)
ssg(a,0,10,ntime)
s(ntime+otime,ctime)
ss(key+my+user+ctime,all)
ss("http://api.guaqb.cn/v1/secret/?type=md5&content="+all+"&key="+key+"&secret="+my,md51)
hs(md51,md5)
//由于IAPP没有md5函数,只能调用我的接口实现。IAPP调用JAVA实现MD5代码可进群获取
ssg(md5,24,32,to)
ss(to+ctime,token)
ss("key="+key+"&my="+my+"&token="+token+"&time="+otime+"&today="+today+"&manual="+manual+"&province="+province+"&city="+city+"&district="+district,data)
hs("http://api.guaqb.cn/v1/weather/index.php",data,"utf-8",b)
sj(b,"[","]",k)
//IAPP对JSON格式我真的是服气,
json(k,e)
json(e,"get","now_weather_short",s)
json(e,"get","city",n)
json(e,"get","now_degree",t)
//如果是一周天气就不是这样写json哦
ufnsui()
{
ss(n+" 现在天气:"+s+" 温度:"+t+"℃",m)
tw(m)
//试试打印出来
}
syso(k)
}
感谢管管理“墨轩(783821585)”的协助👏🍗
有更多代码可以发到222508333群里共享!
~~~
其他语言源码请加群222508333获取
**备注**
- 更多返回错误代码请看首页的错误代码描述
- 错误码说明
- 如何获得KEY和密钥
- 邮箱接口
- 自定义邮箱
- QQ邮箱接口
- 通过key发送邮箱(推荐)
- 如何使用KEY发送邮件
- 什么是授权码
- 用户管理接口
- 如何用接口登录
- 如何接口注册
- 如何用接口加减积分
- 如何用接口找回密码
- 如何用接口使用卡密
- 如何后台管理用户
- 怎么添加公告和获取
- 如何使用接口设置会员
- 如何用接口修改密码
- 如何生成卡密
- 如何获取用户全部信息
- 校验登录设备是否唯一
- 如何邀请码生成
- 如何使用设置屏蔽IP
- 接口自定义加密
- 如何修改用户信息
- mv搜索
- QQMV搜索
- 网易云MV搜索
- 音悦tai搜索
- 酷我MV搜索
- 酷狗MV搜索
- 音乐类接口
- 通用音乐接口
- 全名K歌音乐mv
- V1版音乐接口
- v2版音乐接口
- 小程序刷分
- 星途WeGoing1分数
- 悦动音符刷分
- 跳一跳分数
- AI
- 识别身份证文字
- 杂七杂八
- 编码解码
- 三合一收款码
- 本地天气
- 短视频解析
- VIP视频解析
- 网站备案查询
- 身份证信息查询
- 获取用户大致信息
- 短链接生成与还原
- 一言
- 图片PS
- 快递接口
- 获取IP信息
- 更新日志
- 关于文档
- 赞助我们
- 领取红包