Skip to content

[Feature] Add alternative service endpoint URLs #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cbrender-deploy1 opened this issue Mar 18, 2023 · 3 comments
Open

[Feature] Add alternative service endpoint URLs #6

cbrender-deploy1 opened this issue Mar 18, 2023 · 3 comments

Comments

@cbrender-deploy1
Copy link

Currently, handwriting.js only POSTs to one service endpoint, that is https://www.google.com.tw/inputtools/request?ime=handwriting&app=mobilesearch&cs=1&oe=UTF-8. I propose that we add alternative service endpoint URLs which the user could pick from. This will reduce the load off Google's servers, and will circumvent (or at least alleviate the restrictions of) Google's API usage limits.

Here are the possible alternative service endpoint URLs the could choose from:

let serviceEndpointURLs = {
    "default": "https://www.google.com.tw/inputtools/request?ime=handwriting&app=mobilesearch&cs=1&oe=UTF-8",
    "google_tw": "https://www.google.com.tw/inputtools/request?ime=handwriting",
    "google_jp": "https://www.google.co.jp/inputtools/request?ime=handwriting",
    "google": "https://www.google.com/inputtools/request?ime=handwriting",
    "inputtools": "https://inputtools.google.com/request?ime=handwriting"
}

I will try to create a pull request to day to implement these. What do you think?

@ddloo
Copy link

ddloo commented Apr 6, 2023

I have a question, where do I see these requests, can you give docs? Thanks 🙂

@cbrender-deploy1
Copy link
Author

I have a question, where do I see these requests, can you give docs? Thanks 🙂

No docs, it's in the page source of Google Translate.

@pkpeterkwok
Copy link

Can you tell me which page I can see the "Google's API usage limits" for this handwriting API? I want to check and confirm. Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants