-
Notifications
You must be signed in to change notification settings - Fork 438
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
Use POST with translate API #287
Comments
I'm trying to determine what needs to happen in order for us to update from GET to POST. In the meantime, you can still use that modified schema definition that @dwsupplee supplied in the previous issue. I'm sorry this is still outstanding. We are aware of it and trying to get it resolved as soon as we can. I'll keep this open for tracking the solution. |
Thank you for your quick reply and further investigation @jdpedrie ! If it was just about me, I think i would use the modified schema, but I cannot expect users of a CMS to download and modify a json scheme from a gist. :-/ |
@cedricziel #289 should help you. You can provide a service definition json file in the factory or in the TranslateClient constructor like so: <?php
use Google\Cloud\ServiceBuilder;
$cloud = new ServiceBuilder();
$translate = $cloud->translate([
'serviceDefinitionPath' => '/path/to/modified/service-definition.json`
]); Be careful when using this, as we can't guarantee future changes won't break with a custom definition file, but when you're sure a service definition will work, it may let you get your hands on certain features before they're supported in the main library. It'll be included in the next release. |
Hey @cedricziel. We just tagged |
Thanks for taking care @jdpedrie ! |
Same problem as in #250 : Large chunks of text won't go well when submitted through GET requests.
Is there anything stopping us from using the POST method in general when grabbing translations?
The text was updated successfully, but these errors were encountered: