没有任何应用程序 ID 的 API 配额 [英] API Quotas without any Application ID

查看:31
本文介绍了没有任何应用程序 ID 的 API 配额的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们知道任何人或任何公司都向我们提供了许多 API 来开发我们的应用程序.其中一些需要订阅并为您提供访问令牌或密钥等.您可以使用这些密钥访问和使用这些 API,这些密钥使他们了解特定应用程序发生了多少次访问.到这里为止,一切对我来说似乎都是合法的.

We know lots of API's are provided to us by anyone or any company to develop our applications. Some of them requires subscription and gives you an access token or a secret key etc. You can access and use these API's with these keys, and this keys make them understand how many accesses occured for a specific application. Until here, everything seems to be legit for me.

但是,谷歌 API 呢?例如,

But, what about google apis? For example,

http://maps.googleapis.com/maps/api/elevation/xml?locations=48.3412,9.5479&sensor=true

此网络服务(API)为我们提供给定坐标的高程.字符串中没有给出键.但是他们也声明他们有一些配额(使用限制),一天可以完成 2500 个请求,否则它将停止为您工作.

This webservice(API) gives us the elevation for given coordinates. There is no key given in the string. But they also declares that they have some quotas(usage limits) and 2500 requests can be fulfilled for a day, otherwise it will stop working for you.

假设,我有一个电话应用程序,它将此网络服务称为 XML 并对其进行解析;或者有一个桌面应用程序可以做同样的事情.那么谷歌如何能够了解为我的手机应用程序完成了多少请求呢?我的应用程序是否将不同手机的相同识别信息发送给 Google?或者这个配额只对一台机器有效?

Assume, I have a phone application which calls this webservice as XML and parses it; or have a desktop application which does the same thing. So how will google be able to understand how many requests done for my phone application? Does my application send same identification stuff for different phones to Google? or This quota only valid for one machine?

我有点困惑,请您赐教好吗?谢谢

I'm puzzled a bit, can you please enlighten me? Thanks

推荐答案

这是我理解的一些提示.

Here is some hint I understood.

以下代码片段粘贴自 Elevation API 的文档页面.

海拔 API 只能与在 Google 地图上显示结果结合使用;禁止在不显示请求高程数据的地图的情况下使用高程数据.有关允许使用的完整详细信息,请参阅Maps API 服务条款许可限制.

The Elevation API may only be used in conjunction with displaying results on a Google map; using elevation data without displaying a map for which elevation data was requested is prohibited. For complete details on allowed usage, consult the Maps API Terms of Service License Restrictions.

Maps API 只允许授权请求.这意味着您也在获取此提升 API 的密钥.

Maps API only allow authorized requests. which means you are taking a key for this elevation API too.

添加

如何计算和计费网站的超额使用量? 摘自此链接

超过每个 Maps API 服务使用限制的超额使用在每天结束时计算.如果您的网站连续 90 天每天都产生超额使用量,我们会通知您您需要通过以下方式之一做出回应:一、二、三......等

Excess usage over the usage limit for each Maps API service is calculated at the end of each day. If your site generates excess usage every day for 90 consecutive days we will notify you that you need to respond in one of the following ways: one, two, three....etc.

我认为这里重要的是 referer用户访问您的 webapp. 时的 webapp 域名.现在的问题是,如果我使用我的另一台服务器来获取海拔 json 并在我的 web 应用程序上显示...

I think what matters here is a referer which gives the webapp domain name when the user accesses your webapp.. Now the question is what if I use another server of mine to get the elevation json and display on my webapp...

在道德意义上,平均每秒 3 个请求,连续 - 应该是一个伟大而大的应用程序 - 没有人会为这样的流量节省费用.不过,从技术上讲,这个问题是仍然是一个未解决的问题.

In an ethical sense, 3 requests per second on average, continuously - should be a great and big app - no one will save on the payments over such a traffic. Technically though, this question is still an unsolved one.

这篇关于没有任何应用程序 ID 的 API 配额的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆