[Feature] Add alternative service endpoint URLs
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?
I have a question, where do I see these requests, can you give docs? Thanks 🙂
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.
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!