谷歌眼镜Mirror API Reference之标准化查询参数
2014-01-23 11:00
489 查看
原文地址:http://bbs.seacat.cn/thread-898-1-1.html
Standard
Query Parameters 标准化查询参数查询参数,适用于所有Google Mirror API的操作,如下表所示:
说明(API密钥和身份验证令牌):
1.每个请求的关键参数都是必需的,除非你提供一个OAuth 2.0令牌的请求。
2.你必须为每个请求发送一个授权令牌用来被标记(身份验证)。OAuth 2.0是首选的授权协议。
3.您可以为任何请求提供一个OAuth 2.0令牌,可以用以下两种方式。
~使用 access_token 查询参数像这样:?access_token={oauth2-token}
~使用HTTP Authorization header像这样:Authorization:
Bearer {oauth2-token}
除非特别声明,否则所有参数都是可选的。
Standard
Query Parameters 标准化查询参数查询参数,适用于所有Google Mirror API的操作,如下表所示:
说明(API密钥和身份验证令牌):
1.每个请求的关键参数都是必需的,除非你提供一个OAuth 2.0令牌的请求。
2.你必须为每个请求发送一个授权令牌用来被标记(身份验证)。OAuth 2.0是首选的授权协议。
3.您可以为任何请求提供一个OAuth 2.0令牌,可以用以下两种方式。
~使用 access_token 查询参数像这样:?access_token={oauth2-token}
~使用HTTP Authorization header像这样:Authorization:
Bearer {oauth2-token}
除非特别声明,否则所有参数都是可选的。
参数 | 意义 | 注意 |
access_token | 当前用户OAuth 2.0令牌 | · One possible way to provide an OAuth 2.0 token. |
callback | 回调函数 | · Name of the JavaScript callback function that handles the response. · Used in JavaScript JSON-Prequests. |
fields | Selector specifying a subset of fields to include in the response. | · For more information, see the partial responsedocumentation. · Use for better performance. |
key | API key.(REQUIRED*) | · *Required unless you provide an OAuth 2.0 token. · Your API key identifies your project and provides you with API access, quota, and reports. · Obtain your project's API key from the Google Developers Console. |
prettyPrint | Returns response with indentations and line breaks. | · Returns the response in a human-readable format if true. · Default value: true. · When this is false, it can reduce the response payload size, which might lead to better performance in some environments. |
quotaUser | Alternative touserIp. | · Lets you enforce per-user quotas from a server-side application even in cases when the user's IP address is unknown. This can occur, for example, with applications that run cron jobs on App Engine on a user's behalf. · You can choose any arbitrary string that uniquely identifies a user, but it is limited to 40 characters. · Overrides userIp if both are provided. · Learn more about capping usage. |
userIp | IP address of the end user for whom the API call is being made. | · Lets you enforce per-user quotas when calling the API from a server-side application. · Learn more about capping usage. |
相关文章推荐
- SQLite C-API带参数的查询/更新/删除操作
- Django | 查询API参考 (QuerySet API reference) | Django文档
- 谷歌眼镜Mirror API Reference之Timeline
- 谷歌眼镜Mirror API Reference之Timeline
- 谷歌眼镜Mirror API之Reference
- 谷歌眼镜Mirror API Reference之标准化查询参数
- rest api get 查询接口 多个参数
- axios调用多参数API
- 实现动态参数查询
- solr4.7.2中查询参数的意思
- 动态参数查询
- ArcGIS.Server.9.3和ArcGIS API for Flex实现Query查询定位中心功能(七)
- Android数据库二:使用谷歌封装好的api对数据库增删改查
- ContentResolver.query的参数问题 按条件实现模糊查询
- Xcode7.1中帮助文档(Documentation and API Reference)的位置以及自行安装帮助文档的方法
- 在sql语句中,怎样将参数做为表名传递到查询语句中
- MSDN中API参数说明前的[in]和[out]是什么意思
- Solr查询参数(分页)start 与 rows
- Datatables中文API——基本参数(2)
- The number of method references in a .dex file cannot exceed 64k API 17