Skip to content

Commit

Permalink
#
Browse files Browse the repository at this point in the history
  • Loading branch information
lanlin committed Mar 19, 2021
1 parent de4219f commit de8ac2c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ use Nylas\Client;
$options =
[
'debug' => true,
'region' => 'oregon', // server region, can be Oregon, ireland or canada, default is oregon
'region' => 'oregon', // server region, can be oregon, ireland or canada, default is oregon
'log_file' => dirname(__FILE__) . '/test.log', // a file path or a resource handler
'account_id' => 'your account id',
'access_token' => 'your access token',
Expand Down
2 changes: 1 addition & 1 deletion src/Request/AbsBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function __construct(string $server = null, $debug = false)
$option =
[
'verify' => true,
'base_uri' => trim($server ?? API::LIST['oregon']),
'base_uri' => trim($server ?? API::SERVER['oregon']),
];

$this->debug = $debug;
Expand Down
1 change: 1 addition & 0 deletions src/Utilities/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public function __construct(array $options)

// optional
$this->setDebug($options['debug'] ?? false);
$this->setServer($options['region'] ?? 'oregon');
$this->setLogFile($options['log_file'] ?? null);
$this->setAccountId($options['account_id'] ?? '');
$this->setAccessToken($options['access_token'] ?? '');
Expand Down

0 comments on commit de8ac2c

Please sign in to comment.