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

Phone home helper api change #417

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

Conversation

basimSynopsys
Copy link
Collaborator

Added apiSecret and measurementId parameters for creating the phone home helper. Also, PhoneHomeClient object initialization will change when the phone-home-client is updated.

The changes are no longer compatible with previous method signature of the createAsynchronousPhoneHomeHelper(). That's why the major version is upgraded.

This pull request should be merged when the phone-home-client library is updated and ready to use.

public static PhoneHomeClient createPhoneHomeClient(IntLogger intLogger, HttpClientBuilder httpClientBuilder, Gson gson, String trackingId) {
return new PhoneHomeClient(intLogger, httpClientBuilder, gson, trackingId);
public static PhoneHomeClient createPhoneHomeClient(IntLogger intLogger, HttpClientBuilder httpClientBuilder, Gson gson, String apiSecret, String measurementId) {
//return new PhoneHomeClient(intLogger, httpClientBuilder, gson, apiSecret, measurementId);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have changed the constructor/API in the phone-home-client to accommodate the GA4 API secret, maintaining the order of parameters used here. Please go ahead and use this new signature

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.

None yet

2 participants