Thanks a lot, this is what I am looking for.
2011/4/3 Jeremy Geerdes <[email protected]>
> This is what you get when you try to use v2 without an API key.
>
> {
> "error": {
> "errors": [
> {
> "domain": "usageLimits",
> "reason": "dailyLimitExceededUnreg",
> "message": "Daily Limit Exceeded. Please sign up",
> "extendedHelp": "https://code.google.com/apis/console"
> }
> ],
> "code": 403,
> "message": "Daily Limit Exceeded. Please sign up"
> }
> }
>
> You will notice that you get an error object, which includes a code
> property. So yes, you will get an error, with code and message that you can
> check.
>
> Jeremy R. Geerdes
> Generally Cool Guy
> Des Moines, IA
>
> For more information or a project quote:
> [email protected]
>
> If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan
> Church!
>
> On Apr 3, 2011, at 12:01 AM, 汪军 wrote:
>
> Thanks. But does there is a error code to indicate quota has been exceed
> in API v2? like 200 will be return be returned as every thing is fine. It's
> says if there was an error in translating the text, it will presented by
> http-style error code in api's reference.
> http://code.google.com/apis/language/translate/v1/reference.html
>
> 2011/4/3 Jeremy Geerdes <[email protected]>
>
>> It depends on the version of the API. v1 will return a JSON object with an
>> error message about suspected TOS abuse. And v2 will return a very nice JSON
>> object with a message that says you've exceeded your quota.
>>
>> Jeremy R. Geerdes
>> Generally Cool Guy
>> Des Moines, IA
>>
>> For more information or a project quote:
>> [email protected]
>>
>> If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan
>> Church!
>>
>> On Apr 2, 2011, at 11:11 AM, jun Wang wrote:
>>
>> > As we know, there is a limit in number of characters per key one day.
>> > But it not mentioned what will google return when this situation
>> > happened ( or just I have not found it ). Does anyone know this?
>> > thanks a lot
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups "Google AJAX APIs" group.
>> > To post to this group, send email to
>> [email protected].
>> > To unsubscribe from this group, send email to
>> [email protected].
>> > For more options, visit this group at
>> http://groups.google.com/group/google-ajax-search-api?hl=en.
>> >
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google AJAX APIs" group.
>> To post to this group, send email to
>> [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/google-ajax-search-api?hl=en.
>>
>>
>
>
> --
>
> *
>
> *
> * 汪军 *
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google AJAX APIs" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-ajax-search-api?hl=en.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google AJAX APIs" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-ajax-search-api?hl=en.
>
--
from Jun Wang
--
You received this message because you are subscribed to the Google Groups
"Google AJAX APIs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en.