Skip to content

Commit

Permalink
[PHP] Fix code example from README. Variable name was missing when us…
Browse files Browse the repository at this point in the history
…ing Basic auth. (#7777)
  • Loading branch information
alexions authored and wing328 committed Mar 8, 2018
1 parent 832919b commit cf8d8d5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ Please follow the [installation procedure](#installation--usage) and then run th
require_once(__DIR__ . '/vendor/autoload.php');
{{#apiInfo}}{{#apis}}{{#-first}}{{#operations}}{{#operation}}{{#-first}}{{#hasAuthMethods}}{{#authMethods}}{{#isBasic}}
// Configure HTTP basic authorization: {{{name}}}
$config = {{{invokerPackage}}}\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');{{/isBasic}}{{#isApiKey}}
// Configure API key authorization: {{{name}}}
Expand Down

0 comments on commit cf8d8d5

Please sign in to comment.