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

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

问题描述

我们知道很多的提供给我们的API被任何人或公司来开发我们的应用程序。他们中的一些需要订阅,并给你一个访问令牌或密钥等,您可以访问和使用这些API与这些键,这按键让他们明白很多访问是如何发生的具体应用。在此之前,一切似乎是合法的我。

但是,这个谷歌的API?例如,

<$p$p><$c$c>http://maps.googleapis.com/maps/api/elevation/xml?locations=48.3412,9.5479&sensor=true

此web服务(API)给了我们给定坐标高程。没有字符串中给定的键。但他们也宣称,他们有一定的配额(使用限制)和2500请求可以完成了一天,否则将停止为你工作。

假设,我有一个手机应用程序调用该Web服务XML和解析它;或者有一个桌面应用程序,做同样的事情。因此,Google将如何能够理解多少请求我的手机应用程序做了什么?请问我的应用程序发送相同的识别工具和不同的手机谷歌?或此配额只适用于一台机器?

我疑惑了一下,你能告诉我吗?
谢谢


解决方案

下面是一些提示我明白了。

下面的代码片段是从海拔API的文档页面粘贴。


  

高程API仅可结合使用显示谷歌地图上的结果;使用高程数据而不显示请求海拔数据是被禁止的地图。有关允许的用法的完整详细信息,请参阅服务许可限制的地图API服务条款。


地图API只允许授权的请求。这意味着你正在为这个高度API的关键了。

ADDED


  

如何将网站的超限使用计算和结算的? 摘录从这个链接


  
  

在每个地图API服务的超限使用次数是在每天结束时计算。如果您的网站超出使用,每天连续90天,我们将通知您,您需要通过以下方式之一响应:一,二,三....等。


我想在这里重要的是一个 引用者 当用户访问您的 web应用程序这给Web应用程序的域名。
 现在的问题是什么,如果我用我的另一台服务器,以获得海拔JSON和显示器上显示我的webapp ...

在道德意义上说,平均每秒3的要求,不断 - 应该是一个伟大的,大的应用程序 - 没有人会节省支付过这样的交通的技术上虽然,这个问题是仍是一个未解的。

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.

But, what about google apis? For example,

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

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.

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.

The following snippet is pasted from Elevation API's docs page.

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 only allow authorized requests. which means you are taking a key for this elevation API too.

ADDED

How will excess usage by a site be calculated and billed? Excerpt from this link

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.

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...

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.

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

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