Skip to content

Commit a153018

Browse files
committed
domain
1 parent 4e5ca9c commit a153018

11 files changed

+15
-13
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@ Please follow the [installation procedure](#installation--usage) and then run th
2424
<?php
2525
require_once(__DIR__ . '/vendor/autoload.php');
2626
//Get OAuth2 access token
27-
$authorization = new DocPlanner\Client\Authorization('AUTHORIZATION_URL');
27+
$authorization = new DocPlanner\Client\Authorization('https://www.{domain}/oauth/v2/token');
2828
$accessToken = $authorization->getAccessToken('YOUR_CLIENT_ID', 'YOUR_CLIENT_SECRET');
2929

3030
// Configure access token for authorization
31-
$config = DocPlanner\Client\Configuration::getDefaultConfiguration()->setAccessToken($accessToken);
31+
$config = DocPlanner\Client\Configuration::getDefaultConfiguration();
32+
$config->setAccessToken($accessToken);
33+
$config->setHost('https://www.{domain}/api/v3/integration');
3234

3335
$apiInstance = new DocPlanner\Client\Api\DoctorsApi(
3436
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
@@ -77,7 +79,7 @@ Obtained token is valid for the next 24h, so it is good practice to cache it for
7779
###Example
7880
```php
7981
//Get OAuth2 access token
80-
$authorization = new DocPlanner\Client\Authorization('AUTHORIZATION_URL');
82+
$authorization = new DocPlanner\Client\Authorization('https://www.{domain}/oauth/v2/token');
8183
$accessToken = $authorization->getAccessToken('YOUR_CLIENT_ID', 'YOUR_CLIENT_SECRET');
8284

8385
// Configure access token for authorization

docs/Api/AddressesApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DocPlanner\Client\AddressesApi
22

3-
All URIs are relative to *https://www.znanylekarz.pl/api/v3/integration*
3+
All URIs are relative to *https://www.{domain}/api/v3/integration*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------

docs/Api/BookingsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DocPlanner\Client\BookingsApi
22

3-
All URIs are relative to *https://www.znanylekarz.pl/api/v3/integration*
3+
All URIs are relative to *https://www.{domain}/api/v3/integration*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------

docs/Api/CalendarBreaksApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DocPlanner\Client\CalendarBreaksApi
22

3-
All URIs are relative to *https://www.znanylekarz.pl/api/v3/integration*
3+
All URIs are relative to *https://www.{domain}/api/v3/integration*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------

docs/Api/DoctorsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DocPlanner\Client\DoctorsApi
22

3-
All URIs are relative to *https://www.znanylekarz.pl/api/v3/integration*
3+
All URIs are relative to *https://www.{domain}/api/v3/integration*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------

docs/Api/FacilitiesApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DocPlanner\Client\FacilitiesApi
22

3-
All URIs are relative to *https://www.znanylekarz.pl/api/v3/integration*
3+
All URIs are relative to *https://www.{domain}/api/v3/integration*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------

docs/Api/InsurancesApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DocPlanner\Client\InsurancesApi
22

3-
All URIs are relative to *https://www.znanylekarz.pl/api/v3/integration*
3+
All URIs are relative to *https://www.{domain}/api/v3/integration*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------

docs/Api/PatientPresenceApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DocPlanner\Client\PatientPresenceApi
22

3-
All URIs are relative to *https://www.znanylekarz.pl/api/v3/integration*
3+
All URIs are relative to *https://www.{domain}/api/v3/integration*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------

docs/Api/ServicesApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DocPlanner\Client\ServicesApi
22

3-
All URIs are relative to *https://www.znanylekarz.pl/api/v3/integration*
3+
All URIs are relative to *https://www.{domain}/api/v3/integration*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------

docs/Api/SlotsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DocPlanner\Client\SlotsApi
22

3-
All URIs are relative to *https://www.znanylekarz.pl/api/v3/integration*
3+
All URIs are relative to *https://www.{domain}/api/v3/integration*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------

0 commit comments

Comments
 (0)