ShowAPI,自营为主的数据交易市场
立即注册

bing每日壁纸图片

提供者: club34 免费使用

获取每日bing推荐壁纸

浏览量:513

调用量:138219

使用人数:4809

点赞:62

申请使用 查看演示
文档 授权签名(重要) 联系信息 价格一览表 接口演示
接入点列表
bing每日壁纸图片
数据结构列表
list
资源列表
·SDK及代码示例
规则中心
·名词解释
·常见问题

接入点说明

获取每日bing推荐壁纸

请求URL地址

http://route.showapi.com/1377-1
注意:接口支持https,更安全,但稍慢一些,你懂的。请根据自己的情况进行选择。

请求参数

HTTP协议,支持GET/POST方法。
非文件上传的POST时,enctype=application/x-www-form-urlencoded。
文件上传的POST时,enctype=multipart/form-data。
1.系统级参数(所有接入点都需要的参数):+点此展开
2.应用级参数(每个接入点有自己的参数):
参数名称 类型 默认值 示例值 必须 描述

返回参数

以JSON格式返回结果。
1.系统级参数(所有接入点都会返回的参数):+点此展开
2.应用级参数(系统级输出参数showapi_res_body字段中的json数据结构):
名称 类型 示例值 描述
ret_code Number 0 获取成功
list list[]
- title String 希腊扎金索斯的沉船湾 图片描述
- pic String http://www.bing.com/az/hprichbg/rb/NavagioBeach_ZH-CN8854639142_1920x1080.jpg 图片地址
- 1920x1080 String http://www.bing.com/az/hprichbg/rb/NavagioBeach_ZH-CN8854639142_1920x1080.jpg
- 1366x768 String http://www.bing.com/az/hprichbg/rb/NavagioBeach_ZH-CN8854639142_1366x768.jpg
- 1280x768 String http://www.bing.com/az/hprichbg/rb/NavagioBeach_ZH-CN8854639142_1280x768.jpg
- 1024x768 String http://www.bing.com/az/hprichbg/rb/NavagioBeach_ZH-CN8854639142_1024x768.jpg
- 800x600 String http://www.bing.com/az/hprichbg/rb/NavagioBeach_ZH-CN8854639142_800*600.jpg
- 800x480 String http://www.bing.com/az/hprichbg/rb/NavagioBeach_ZH-CN8854639142_800*480.jpg
- 720x1280 String http://www.bing.com/az/hprichbg/rb/NavagioBeach_ZH-CN8854639142_720*1280.jpg
- 640x480 String http://www.bing.com/az/hprichbg/rb/NavagioBeach_ZH-CN8854639142_640*480.jpg
- 480x800 String http://www.bing.com/az/hprichbg/rb/NavagioBeach_ZH-CN8854639142_480*800.jpg
- 400x240 String http://www.bing.com/az/hprichbg/rb/NavagioBeach_ZH-CN8854639142_400*240.jpg
- 320x240 String http://www.bing.com/az/hprichbg/rb/NavagioBeach_ZH-CN8854639142_320*240.jpg
- 240x320 String http://www.bing.com/az/hprichbg/rb/NavagioBeach_ZH-CN8854639142_240*320.jpg
- subtitle String 法国,霞慕尼山谷 副标题
- content String 在法国的霞慕尼山谷的上空,这种发光的阴霾看起来像仙境幻想,但它确实是怪异天气的产物。当下面的温度比上面的空气温度低的时候,会发生这样的反转,看起来像一片云的海洋。在这个特殊的云层下面是冬季运动爱好者的游乐场。霞慕尼是法国最古老的滑雪胜地之一。 描述
  • 请求实例
  • java_sdk
  • 纯java
  • curl
  • php
  • android
  • python
String res=new ShowApiRequest("http://route.showapi.com/1377-1","my_appId","my_appSecret")
           .post();
System.out.println(res);

                  public static void main(String path[]) throws Exception {
									URL u=new URL("http://route.showapi.com/1377-1?showapi_appid=myappid&showapi_sign=mysecret");
									InputStream in=u.openStream();
									ByteArrayOutputStream out=new ByteArrayOutputStream();
									try {
										byte buf[]=new byte[1024];
										int read = 0;
										while ((read = in.read(buf)) > 0) {
											out.write(buf, 0, read);
										}
									}  finally {
										if (in != null) {
											in.close();
										}
									}
									byte b[]=out.toByteArray( );
									System.out.println(new String(b,"utf-8"));
							}
						 
						
						//字段值为中文、空格、特殊符号的地方需要做urlencode,编码为utf-8。用js的方式就是:
						//encodeURIComponent('中文')
						//比如"中文"转换后就是%25E4%25B8%25AD%25E6%2596%2587
            curl   "http://route.showapi.com/1377-1?showapi_appid=123&showapi_timestamp=20151214132239&showapi_sign=use_my_sign&"
						
						 //md5签名方式--非简单签名
               			<?php
							header("Content-Type:text/html;charset=UTF-8");
							date_default_timezone_set("PRC");
							$showapi_appid = 'xxxxxx';  //替换此值,在官网的"我的应用"中找到相关值
							$showapi_secret = 'xxxxxxxxx';  //替换此值,在官网的"我的应用"中找到相关值 
							$paramArr = array(
							     'showapi_appid'=> $showapi_appid
							     //添加其他参数
							);
							
							//创建参数(包括签名的处理)
							function createParam ($paramArr,$showapi_secret) {
							     $paraStr = "";
							     $signStr = "";
							     ksort($paramArr);
							     foreach ($paramArr as $key => $val) {
							         if ($key != '' && $val != '') {
							             $signStr .= $key.$val;
							             $paraStr .= $key.'='.urlencode($val).'&';
							         }
							     }
							     $signStr .= $showapi_secret;//排好序的参数加上secret,进行md5
							     $sign = strtolower(md5($signStr));
							     $paraStr .= 'showapi_sign='.$sign;//将md5后的值作为参数,便于服务器的效验
							     echo "排好序的参数:".$signStr."
\r\n"; return $paraStr; } $param = createParam($paramArr,$showapi_secret); $url = 'http://route.showapi.com/1377-1?'.$param; echo "请求的url:".$url."
\r\n"; $result = file_get_contents($url); echo "返回的json数据:
\r\n"; print $result.'
\r\n'; $result = json_decode($result); echo "
\r\n取出showapi_res_code的值:
\r\n"; print_r($result->showapi_res_code); echo "
\r\n"; ?>
						//以下代码为纯java实现,并未依赖第三方框架,具体传入参数请参看接口描述详情页.
						protected Handler mHandler =  new Handler();
						protected void onCreate(Bundle savedInstanceState) {
								super.onCreate(savedInstanceState);
								setContentView(R.layout.activity_main);
								final TextView txt = (TextView) this.findViewById(R.id.textView1);
								Button myBtn = (Button) this.findViewById(R.id.button1);
								myBtn.setOnClickListener(new OnClickListener() {
									public void onClick(View v) {
										new Thread(){
											//在新线程中发送网络请求
											public void run() {
												String appid="xxx";//要替换成自己的
												String secret="xxxxxxx";//要替换成自己的
												final String res=new ShowApiRequest( "http://route.showapi.com/1377-1", appid, secret)
.post();
												
												System.out.println(res);
												//把返回内容通过handler对象更新到界面
												mHandler.post(new Thread(){
													public void run() {
														txt.setText(res+"  "+new Date());
													}
												});
											}
										}.start();
										
										
									}
								});
						}

						
#python3.5
from urllib import    request, parse
import json

print('send data....')
showapi_appid="xxxxxxxxxx"  #替换此值
showapi_sign="xxxxxxxxxx"   #替换此值
url="http://route.showapi.com/1377-1"
send_data = parse.urlencode([
    ('showapi_appid', showapi_appid)
    ,('showapi_sign', showapi_sign)
    
  ])

req = request.Request(url)
try:
       response = request.urlopen(req, data=send_data.encode('utf-8'), timeout = 10) # 10秒超时反馈
except Exception as e:
    print(e)
result = response.read().decode('utf-8')
result_json = json.loads(result)
print ('result_json data is:', result_json)

						

返回实例

{
  "showapi_res_code": 0,
  "showapi_res_error": "",
  "showapi_res_body": {
    "ret_code": 0,
    "list": [
      {
        "1920*1080": "http://www.bing.com/az/hprichbg/rb/StorkCliffs_ZH-CN11006532238_1920*1080.jpg",
        "720x1280": "http://www.bing.com/az/hprichbg/rb/StorkCliffs_ZH-CN11006532238_720x1280.jpg",
        "800x600": "http://www.bing.com/az/hprichbg/rb/StorkCliffs_ZH-CN11006532238_800x600.jpg",
        "pic": "http://www.bing.com/az/hprichbg/rb/StorkCliffs_ZH-CN11006532238_1920x1080.jpg",
        "640x480": "http://www.bing.com/az/hprichbg/rb/StorkCliffs_ZH-CN11006532238_640x480.jpg",
        "240x320": "http://www.bing.com/az/hprichbg/rb/StorkCliffs_ZH-CN11006532238_240x320.jpg",
        "country": "法国",
        "city": "霞慕尼山谷",
        "content": "在法国的霞慕尼山谷的上空,这种发光的阴霾看起来像仙境幻想,但它确实是怪异天气的产物。当下面的温度比上面的空气温度低的时候,会发生这样的反转,看起来像一片云的海洋。在这个特殊的云层下面是冬季运动爱好者的游乐场。霞慕尼是法国最古老的滑雪胜地之一。",
        "title": "一只白鹳和幼鸟在阿连特茹西南部和维森蒂娜海岸自然公园内筑巢,葡萄牙 (© Marco Bustos/Solent News/REX/Shutterstock)",
        "320x240": "http://www.bing.com/az/hprichbg/rb/StorkCliffs_ZH-CN11006532238_320x240.jpg",
        "subtitle": "法国,霞慕尼山谷",
        "1024x768": "http://www.bing.com/az/hprichbg/rb/StorkCliffs_ZH-CN11006532238_1024x768.jpg",
        "400x240": "http://www.bing.com/az/hprichbg/rb/StorkCliffs_ZH-CN11006532238_400x240.jpg",
        "day": "20170831",
        "1280x768": "http://www.bing.com/az/hprichbg/rb/StorkCliffs_ZH-CN11006532238_1280x768.jpg",
        "480x800": "http://www.bing.com/az/hprichbg/rb/StorkCliffs_ZH-CN11006532238_480x800.jpg",
        "800x480": "http://www.bing.com/az/hprichbg/rb/StorkCliffs_ZH-CN11006532238_800x480.jpg",
        "1366x768": "http://www.bing.com/az/hprichbg/rb/StorkCliffs_ZH-CN11006532238_1366x768.jpg"
      },
      {
        "1920*1080": "http://www.bing.com/az/hprichbg/rb/ChamonixClouds_ZH-CN7700889231_1920*1080.jpg",
        "720x1280": "http://www.bing.com/az/hprichbg/rb/ChamonixClouds_ZH-CN7700889231_720x1280.jpg",
        "800x600": "http://www.bing.com/az/hprichbg/rb/ChamonixClouds_ZH-CN7700889231_800x600.jpg",
        "pic": "http://www.bing.com/az/hprichbg/rb/ChamonixClouds_ZH-CN7700889231_1920x1080.jpg",
        "640x480": "http://www.bing.com/az/hprichbg/rb/ChamonixClouds_ZH-CN7700889231_640x480.jpg",
        "240x320": "http://www.bing.com/az/hprichbg/rb/ChamonixClouds_ZH-CN7700889231_240x320.jpg",
        "country": "",
        "city": "",
        "content": "这群金色无齿鲹与海洋中最大的鱼——鲸鲨一起在鸟头湾悠闲的遨游。金色无齿鲹经常与温和的巨人鲸鲨一起游泳,它们能清除一些鲸鲨的残羹剩饭,甚至可以保护鲸鲨免受捕食者的伤害。与大多数鲨鱼不同,鲸鲨是一种以浮游生物为食的滤食动物。我们可以在赤道附近的温暖水域里找到它们。",
        "title": "法国霞慕尼山谷上空的云海 (© Masterfile)",
        "320x240": "http://www.bing.com/az/hprichbg/rb/ChamonixClouds_ZH-CN7700889231_320x240.jpg",
        "subtitle": "奇妙的旅程",
        "1024x768": "http://www.bing.com/az/hprichbg/rb/ChamonixClouds_ZH-CN7700889231_1024x768.jpg",
        "400x240": "http://www.bing.com/az/hprichbg/rb/ChamonixClouds_ZH-CN7700889231_400x240.jpg",
        "day": "20170830",
        "1280x768": "http://www.bing.com/az/hprichbg/rb/ChamonixClouds_ZH-CN7700889231_1280x768.jpg",
        "480x800": "http://www.bing.com/az/hprichbg/rb/ChamonixClouds_ZH-CN7700889231_480x800.jpg",
        "800x480": "http://www.bing.com/az/hprichbg/rb/ChamonixClouds_ZH-CN7700889231_800x480.jpg",
        "1366x768": "http://www.bing.com/az/hprichbg/rb/ChamonixClouds_ZH-CN7700889231_1366x768.jpg"
      },
      {
        "1920*1080": "http://www.bing.com/az/hprichbg/rb/GoldenTrevally_ZH-CN8976794546_1920*1080.jpg",
        "720x1280": "http://www.bing.com/az/hprichbg/rb/GoldenTrevally_ZH-CN8976794546_720x1280.jpg",
        "800x600": "http://www.bing.com/az/hprichbg/rb/GoldenTrevally_ZH-CN8976794546_800x600.jpg",
        "pic": "http://www.bing.com/az/hprichbg/rb/GoldenTrevally_ZH-CN8976794546_1920x1080.jpg",
        "640x480": "http://www.bing.com/az/hprichbg/rb/GoldenTrevally_ZH-CN8976794546_640x480.jpg",
        "240x320": "http://www.bing.com/az/hprichbg/rb/GoldenTrevally_ZH-CN8976794546_240x320.jpg",
        "country": "",
        "city": "",
        "content": "时间的流逝在俄勒冈州中部的彩绘山丘上留下了它的痕迹,这是约翰时代化石床国家纪念碑的一部分。色彩斑斓的灰土讲述了一个大约3000万年前的一个时代的故事,当时该地区是一个富饶的洪水平原,有马、骆驼、甚至犀牛等动物。它们的化石残骸都可以在这里找到,吸引了古生物学家和大量的游客。",
        "title": "一群金色无齿鲹与一条鲸鲨遨游在鸟头湾中,印度尼西亚 (© Pete Oxford/Minden Pictures)",
        "320x240": "http://www.bing.com/az/hprichbg/rb/GoldenTrevally_ZH-CN8976794546_320x240.jpg",
        "subtitle": "彩绘山丘",
        "1024x768": "http://www.bing.com/az/hprichbg/rb/GoldenTrevally_ZH-CN8976794546_1024x768.jpg",
        "400x240": "http://www.bing.com/az/hprichbg/rb/GoldenTrevally_ZH-CN8976794546_400x240.jpg",
        "day": "20170829",
        "1280x768": "http://www.bing.com/az/hprichbg/rb/GoldenTrevally_ZH-CN8976794546_1280x768.jpg",
        "480x800": "http://www.bing.com/az/hprichbg/rb/GoldenTrevally_ZH-CN8976794546_480x800.jpg",
        "800x480": "http://www.bing.com/az/hprichbg/rb/GoldenTrevally_ZH-CN8976794546_800x480.jpg",
        "1366x768": "http://www.bing.com/az/hprichbg/rb/GoldenTrevally_ZH-CN8976794546_1366x768.jpg"
      },
      {
        "1920*1080": "http://www.bing.com/az/hprichbg/rb/OregonPainted_ZH-CN8553728911_1920*1080.jpg",
        "720x1280": "http://www.bing.com/az/hprichbg/rb/OregonPainted_ZH-CN8553728911_720x1280.jpg",
        "800x600": "http://www.bing.com/az/hprichbg/rb/OregonPainted_ZH-CN8553728911_800x600.jpg",
        "pic": "http://www.bing.com/az/hprichbg/rb/OregonPainted_ZH-CN8553728911_1920x1080.jpg",
        "640x480": "http://www.bing.com/az/hprichbg/rb/OregonPainted_ZH-CN8553728911_640x480.jpg",
        "240x320": "http://www.bing.com/az/hprichbg/rb/OregonPainted_ZH-CN8553728911_240x320.jpg",
        "country": "英国",
        "city": "巴特莱克矿场遗址",
        "content": "巴特莱克矿场位于英格兰西南部,它是英国“锡海岸”的一部分,曾经是一处海底矿井,地下深处有隧道,矿工们在这里可以采集到锡、砷和铜。1895年采矿被中断,但悬崖作为康沃尔郡和西德文郡矿区的一部分被保护了起来,并成为教科文组织公认的世界遗产。",
        "title": "俄勒冈州内的“彩绘山丘”,美国 (© David Henderson/plainpicture)",
        "320x240": "http://www.bing.com/az/hprichbg/rb/OregonPainted_ZH-CN8553728911_320x240.jpg",
        "subtitle": "英国,巴特莱克矿场遗址",
        "1024x768": "http://www.bing.com/az/hprichbg/rb/OregonPainted_ZH-CN8553728911_1024x768.jpg",
        "400x240": "http://www.bing.com/az/hprichbg/rb/OregonPainted_ZH-CN8553728911_400x240.jpg",
        "day": "20170828",
        "1280x768": "http://www.bing.com/az/hprichbg/rb/OregonPainted_ZH-CN8553728911_1280x768.jpg",
        "480x800": "http://www.bing.com/az/hprichbg/rb/OregonPainted_ZH-CN8553728911_480x800.jpg",
        "800x480": "http://www.bing.com/az/hprichbg/rb/OregonPainted_ZH-CN8553728911_800x480.jpg",
        "1366x768": "http://www.bing.com/az/hprichbg/rb/OregonPainted_ZH-CN8553728911_1366x768.jpg"
      },
      {
        "1920*1080": "http://www.bing.com/az/hprichbg/rb/BotallackCornwall_ZH-CN11396172846_1920*1080.jpg",
        "720x1280": "http://www.bing.com/az/hprichbg/rb/BotallackCornwall_ZH-CN11396172846_720x1280.jpg",
        "800x600": "http://www.bing.com/az/hprichbg/rb/BotallackCornwall_ZH-CN11396172846_800x600.jpg",
        "pic": "http://www.bing.com/az/hprichbg/rb/BotallackCornwall_ZH-CN11396172846_1920x1080.jpg",
        "640x480": "http://www.bing.com/az/hprichbg/rb/BotallackCornwall_ZH-CN11396172846_640x480.jpg",
        "240x320": "http://www.bing.com/az/hprichbg/rb/BotallackCornwall_ZH-CN11396172846_240x320.jpg",
        "country": "",
        "city": "",
        "content": "杉叶藻是一种水生植物,它们生长在广阔的高海拔地域范围内,从北美的湿地到青藏高原的高海拔地区,这种多年生草本植物栖息在浅水和泥中。杉叶藻还有入药的效用,在草药中,杉叶藻有时用来治疗伤口。它们的长相也是超级让人赏心悦目的杉叶形状。",
        "title": "康沃尔郡内的巴特莱克矿场, 英国 (© Robert Harding/Masterfile)",
        "320x240": "http://www.bing.com/az/hprichbg/rb/BotallackCornwall_ZH-CN11396172846_320x240.jpg",
        "subtitle": "杉叶藻",
        "1024x768": "http://www.bing.com/az/hprichbg/rb/BotallackCornwall_ZH-CN11396172846_1024x768.jpg",
        "400x240": "http://www.bing.com/az/hprichbg/rb/BotallackCornwall_ZH-CN11396172846_400x240.jpg",
        "day": "20170827",
        "1280x768": "http://www.bing.com/az/hprichbg/rb/BotallackCornwall_ZH-CN11396172846_1280x768.jpg",
        "480x800": "http://www.bing.com/az/hprichbg/rb/BotallackCornwall_ZH-CN11396172846_480x800.jpg",
        "800x480": "http://www.bing.com/az/hprichbg/rb/BotallackCornwall_ZH-CN11396172846_800x480.jpg",
        "1366x768": "http://www.bing.com/az/hprichbg/rb/BotallackCornwall_ZH-CN11396172846_1366x768.jpg"
      }
    ],
    "msg": "提建议加微信:geo507"
  }
}




请求地址 请求参数 返回参数 请求示例 返回示例
接入点列表
bing每日壁纸图片
  • 免费套餐(bing每日壁纸图片)

免费套餐_无认证版

0时间:1年

  • 不限调用次数
  • 1次/秒调用频率
  •  
  •  
点此订购

免费套餐_基本认证版

0时间:1年

  • 不限调用次数
  • 2次/秒调用频率
  • 邮箱认证 要求
  • 手机认证 要求
点此订购

免费套餐_实名认证版

0时间:1年

  • 不限调用次数
  • 3次/秒调用频率
  • 邮箱认证 要求
  • 手机认证 要求
  • 实名认证 要求
点此订购