googleapis / google-api-php-client

A PHP client library for accessing Google APIs
http://googleapis.github.io/google-api-php-client/
Apache License 2.0
9.32k stars 3.52k forks source link

Accept the language as optParam #2528

Closed freaki2010 closed 10 months ago

freaki2010 commented 10 months ago

Is your feature request related to a problem? Please describe. I want to use the MapsPlaces API with your php-client, but I need the response text in german. In the official API documentation is written, that you can use the language parameter to change the language of the response, but if I want to use it with your client, an error is thrown that this parameter is unknown.

Describe the solution you'd like Please add the language parameter to the accepted optParameters. https://developers.google.com/maps/documentation/places/web-service/details?hl=de#language

Thanks in advance :)

freaki2010 commented 10 months ago

can be closed after investigation I found out that the language can be set with languageCode. Maybe you could update the documentation or i didn't found it :D

Thanks anyways