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

Make it so you can update the host to use sandbox. #20

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

camspanos
Copy link

@camspanos camspanos commented Feb 9, 2024

Remove the hardcoded const. The config already has the host set. Now we can use the setHost method to switch to sandbox host.

Now you can set the host to sandbox like this with the configuration:

$this->configuration = new Configuration([
    'clientId' => $clientId,
    'clientSecret' => $clientSecret,
]);
$this->configuration->setHost('https://sandbox.walmartapis.com');

…ed const. The config already has the host set. Now we can use the setHost method to switch to sandbox host.
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