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

setAccessToken method #223

Open
jgwiazdowski opened this issue Jun 7, 2024 · 1 comment
Open

setAccessToken method #223

jgwiazdowski opened this issue Jun 7, 2024 · 1 comment
Assignees

Comments

@jgwiazdowski
Copy link

Hi,

can somebody please explain, what is the point of setAccessToken method on Configuration object?

$config = new Configuration();
$config->setAccessToken($api->getAccessToken());

well, one could say "it obviously sets a header in upcoming request!", but it doesn't,
one needs to do below to actually make request work

$config = new Configuration();
$config->addDefaultHeader('Authorization', 'Bearer ' . $api->getAccessToken());

Regards

@DocuSignEric
Copy link

Hi @jgwiazdowski,

Thank you very much for sharing the above, I will contact the developer team to help us with an answer.

Regards,

Eric | Docusign

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

No branches or pull requests

3 participants