Skip to content
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

Support for Google API Client V2 #94

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rvelhote
Copy link

@rvelhote rvelhote commented Feb 8, 2018

Hello,

This PR adds support for Google API Client V2 is added when using composer to install bluevisiontec/googleshoppingapi package. Backward compatibility is maintained users with previous Google API Client versions.

When using V2 you must use the JSON key file instead of the old P12 format so make sure to update the private key file in the configuration. Also added is a configuration switch to hide the client_id, client_secret and client_email options because they can be inferred from the JSON key file. The goal for the future is have this done automatically (don't know how yet).

At the moment this PR is just a call for additional testers to confirm that it works under their current setup to avoid breaking current installs.

Best regards,
Ricardo Velhote

Support for Google API Client V2 is added when using composer to
install bluevisiontec/googleshoppingapi package. Backward compatibility
is maintained users with previous Google API Client versions. When
using V2 you must use the JSON key file instead of the old P12. Also
added is a configuration switch to hide the client_id, client_secret and
client_email options because they can be inferred from the JSON key file.
Google API client V2 no longer has the Google_Utils class. The code was
taken from the camelCase implementation on the previous version and
added as an anonymous function.
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

Successfully merging this pull request may close these issues.

1 participant