urlslab / urlslab-php-sdk
optimize your website with SEO
Installs: 14 855
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7.4 || ^8.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^1.7 || ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- phpunit/phpunit: ^8.0 || ^9.0
This package is auto-updated.
Last update: 2024-12-13 08:29:53 UTC
README
optimize your website with SEO
Installation & Usage
Requirements
PHP 7.4 and later. Should also work with PHP 8.0.
Composer
To install the bindings via Composer, add the following to composer.json
:
{ "repositories": [ { "type": "vcs", "url": "https://github.com/urlslab/urlslab-php-sdk.git" } ], "require": { "urlslab/urlslab-php-sdk": "*@dev" } }
Then run composer install
Manual Installation
Download the files and include autoload.php
:
<?php require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure API key authorization: UrlslabApiKeyAuth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('X-URLSLAB-KEY', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-URLSLAB-KEY', 'Bearer'); $apiInstance = new OpenAPI\Client\Api\AnalyticsApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $domain_data_retrieval_analytics_search_request = new \OpenAPI\Client\Model\DomainDataRetrievalAnalyticsSearchRequest(); // \OpenAPI\Client\Model\DomainDataRetrievalAnalyticsSearchRequest | Analytics request try { $result = $apiInstance->getPageStats($domain_data_retrieval_analytics_search_request); print_r($result); } catch (Exception $e) { echo 'Exception when calling AnalyticsApi->getPageStats: ', $e->getMessage(), PHP_EOL; }
API Endpoints
All URIs are relative to https://api.urlslab.com
Models
- DomainAcknowledged
- DomainDataRetrievalAnalyticsSearchRequest
- DomainDataRetrievalAnalyticsSearchResponse
- DomainDataRetrievalAnalyticsSearchResponseRow
- DomainDataRetrievalAugmentPrompt
- DomainDataRetrievalAugmentRequest
- DomainDataRetrievalAugmentRequestWithURLContext
- DomainDataRetrievalAugmentResponse
- DomainDataRetrievalComplexAugmentRequest
- DomainDataRetrievalComplexAugmentResponse
- DomainDataRetrievalContentQuery
- DomainDataRetrievalDataRequest
- DomainDataRetrievalKeywordAnalyticsBulkResponse
- DomainDataRetrievalKeywordAnalyticsResponse
- DomainDataRetrievalMonthlySearches
- DomainDataRetrievalRelatedUrlsRequest
- DomainDataRetrievalRelatedUrlsResponse
- DomainDataRetrievalScreenshotResponse
- DomainDataRetrievalSearchVolumeBulkRequest
- DomainDataRetrievalSerpApiBulkSearchRequest
- DomainDataRetrievalSerpApiBulkSearchResponse
- DomainDataRetrievalSerpApiSearchRequest
- DomainDataRetrievalSerpApiSearchResponse
- DomainDataRetrievalSerpApiURL
- DomainDataRetrievalSiteUrlsResponse
- DomainDataRetrievalSourceResponse
- DomainDataRetrievalStatefulResponse
- DomainDataRetrievalSummaryResponse
- DomainDataRetrievalUrlSnapshotMultiResponse
- DomainDataRetrievalUrlSnapshotResponse
- DomainDataRetrievalVideoCaptionResponse
- DomainDataRetrievalVideoResponse
- DomainDocsDocIndexRequest
- DomainDocsDocResponse
- DomainDocsSearchRequest
- DomainDocsUrlslabDocument
- DomainDomainsDomainBulkResponseDTO
- DomainDomainsDomainRequestDTO
- DomainDomainsDomainResponseDTO
- DomainDomainsUrlResponseDTO
- DomainDomainsUrlScreenshotDTO
- DomainPaginationDateRange
- DomainPaginationPagination
- DomainPaginationSorting
- DomainScheduleAPISchedule
- DomainScheduleScheduleConf
- DomainUrlslabIntegration
- DomainUserCreditAggregatedCreditEvents
- DomainUserCreditAggregatedCreditResponse
- DomainUserCreditCreditEvent
- DomainUserCreditCreditEventResponse
- DomainUserCreditCreditStatus
- SchemasExtrasChartsChartData
- SchemasExtrasChartsChartDataset
- SchemasExtrasCompleted
- SchemasRequestsChatbotChatCompletionRequest
- SchemasRequestsChatbotChatbotCreate
- SchemasResponsesChatbotChatbotConversationMessageResponse
- SchemasResponsesChatbotChatbotResponse
- SchemasResponsesChatbotChatbotSessionOverviewResponse
- SchemasResponsesChatbotChatbotSessionResponse
- SchemasResponsesChatbotChatbotSessionSource
Authorization
UrlslabApiKeyAuth
- Type: API key
- API key parameter name: X-URLSLAB-KEY
- Location: HTTP header
Tests
To run the tests, use:
composer install vendor/bin/phpunit
Author
About this package
This PHP package is automatically generated by the OpenAPI Generator project:
- API version:
1.0.0
- Package version:
0.5.2
- Package version:
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen