We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 64e1025 + c50000c commit 08a7523Copy full SHA for 08a7523
src/main/resources/handlebars/php/api.mustache
@@ -466,6 +466,12 @@ use {{invokerPackage}}\ObjectSerializer;
466
$headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword());
467
}
468
{{/isBasic}}
469
+ {{#isBearer}}
470
+ // // this endpoint requires Bearer token
471
+ if ($this->config->getAccessToken() !== null) {
472
+ $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
473
+ }
474
+ {{/isBearer}}
475
{{#isOAuth}}
476
// this endpoint requires OAuth (access token)
477
if ($this->config->getAccessToken() !== null) {
0 commit comments