diff --git a/README.md b/README.md index d35a1f1..eba466a 100644 --- a/README.md +++ b/README.md @@ -29,12 +29,17 @@ require_once('/path/to/outscraper-php/init.php'); ``` [Link to the PHP package page](https://packagist.org/packages/outscraper/outscraper) +## Initialization +```php +$client = new OutscraperClient("SECRET_API_KEY"); +``` +[Link to the profile page to create the API key](https://app.outscraper.com/profile) + ## Google Maps Scraper Scrape Google Mpas results bu query "asian restaurants Berlin, Germany". ```php -$client = new ApiClient("your API_KEY from https://app.outscraper.com/profile"); $result = $client->google_maps_search(['asian restaurants Berlin, Germany'], 'en', 'DE'); print_r($result); diff --git a/examples/Emails And Contacts.md b/examples/Emails And Contacts.md index 4b29ed7..7362f43 100644 --- a/examples/Emails And Contacts.md +++ b/examples/Emails And Contacts.md @@ -27,6 +27,12 @@ require_once('/path/to/outscraper-php/init.php'); ``` [Link to the PHP package page](https://packagist.org/packages/outscraper/outscraper) +## Initialization +```php +$client = new OutscraperClient("SECRET_API_KEY"); +``` +[Link to the profile page to create the API key](https://app.outscraper.com/profile) + ## Usage ```php diff --git a/examples/Google Maps Reviews.md b/examples/Google Maps Reviews.md index 0c3dee3..9a75f81 100644 --- a/examples/Google Maps Reviews.md +++ b/examples/Google Maps Reviews.md @@ -27,6 +27,12 @@ require_once('/path/to/outscraper-php/init.php'); ``` [Link to the PHP package page](https://packagist.org/packages/outscraper/outscraper) +## Initialization +```php +$client = new OutscraperClient("SECRET_API_KEY"); +``` +[Link to the profile page to create the API key](https://app.outscraper.com/profile) + ## Usage ```php diff --git a/examples/Google Maps.md b/examples/Google Maps.md index fe29acc..4a49451 100644 --- a/examples/Google Maps.md +++ b/examples/Google Maps.md @@ -27,6 +27,12 @@ require_once('/path/to/outscraper-php/init.php'); ``` [Link to the PHP package page](https://packagist.org/packages/outscraper/outscraper) +## Initialization +```php +$client = new OutscraperClient("SECRET_API_KEY"); +``` +[Link to the profile page to create the API key](https://app.outscraper.com/profile) + ## Usage ```php diff --git a/examples/Google SERP.md b/examples/Google SERP.md index d53c137..1796bf7 100644 --- a/examples/Google SERP.md +++ b/examples/Google SERP.md @@ -27,6 +27,12 @@ require_once('/path/to/outscraper-php/init.php'); ``` [Link to the PHP package page](https://packagist.org/packages/outscraper/outscraper) +## Initialization +```php +$client = new OutscraperClient("SECRET_API_KEY"); +``` +[Link to the profile page to create the API key](https://app.outscraper.com/profile) + ## Usage ```php diff --git a/examples/Phones Validator.md b/examples/Phones Validator.md index f553f54..e2d07a5 100644 --- a/examples/Phones Validator.md +++ b/examples/Phones Validator.md @@ -27,6 +27,12 @@ require_once('/path/to/outscraper-php/init.php'); ``` [Link to the PHP package page](https://packagist.org/packages/outscraper/outscraper) +## Initialization +```php +$client = new OutscraperClient("SECRET_API_KEY"); +``` +[Link to the profile page to create the API key](https://app.outscraper.com/profile) + ## Usage ```php diff --git a/outscraper.php b/outscraper.php index 1d0f410..7388566 100644 --- a/outscraper.php +++ b/outscraper.php @@ -2,15 +2,15 @@ /** - * Outscraper ApiClient - PHP SDK that allows using Outscraper's services and Outscraper's API. + * OutscraperClient - PHP SDK that allows using Outscraper's services and Outscraper's API. * * @copyright Outscraper 2021 * @license https://raw.githubusercontent.com/outscraper/outscraper-php/main/LICENSE * @version Release: 1.1.0 * @link https://github.com/outscraper/outscraper-php */ -class ApiClient { - public $version = "1.5.1"; +class OutscraperClient { + public $version = "1.6.0"; private $api_url = "https://api.app.outscraper.com"; private $api_headers; private $max_ttl = 60 * 60;