Skip to content

Commit

Permalink
Use env USERBASE_CLIENT_BASEURL for examples
Browse files Browse the repository at this point in the history
  • Loading branch information
joostfaassen committed May 27, 2016
1 parent 53eed94 commit e299cfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/common.php
Expand Up @@ -4,11 +4,11 @@

use UserBase\Client\Client;

$baseUrl = 'http://127.0.0.1:8888/api/v1';
$baseUrl = getenv('USERBASE_CLIENT_BASEURL');
$username = getenv('USERBASE_CLIENT_USERNAME');
$password = getenv('USERBASE_CLIENT_PASSWORD');

if (!$username || !$password) {
if (!$username || !$password || !$baseUrl) {
echo "Environment variables not yet properly configured\n";
exit();
}
Expand Down

0 comments on commit e299cfb

Please sign in to comment.