Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
Update Bard.php
Browse files Browse the repository at this point in the history
renamed `$_ENV['_BARD_API_KEY_1PSID']` and `$_ENV['_BARD_API_KEY_1PSIDTS']`
to `$_ENV['BARD_API_KEY_X'] ` and `$_ENV['BARD_API_KEY_Y']`
for convenience
  • Loading branch information
pj8912 authored Jul 14, 2023
1 parent 8a66ada commit 067865d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bard.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct($timeout = 6, $proxies = null, $session = null) {
if ($session === null) {
$this->session = curl_init();
curl_setopt($this->session, CURLOPT_HTTPHEADER, $headers);
curl_setopt($this->session, CURLOPT_COOKIE, "__Secure-1PSID=" . $_ENV["_BARD_API_KEY_1PSID"]."; __Secure-1PSIDTS=" . $_ENV["_BARD_API_KEY_1PSIDTS"]);
curl_setopt($this->session, CURLOPT_COOKIE, "__Secure-1PSID=" . $_ENV["BARD_API_KEY_X"]."; __Secure-1PSIDTS=" . $_ENV["BARD_API_KEY_Y"]);
curl_setopt($this->session, CURLOPT_RETURNTRANSFER, true);
} else {
$this->session = $session;
Expand Down

0 comments on commit 067865d

Please # to comment.