covox / avito_api2
dev-master
2019-09-16 16:36 UTC
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2
This package is auto-updated.
Last update: 2025-06-13 15:09:15 UTC
README
Общая информация Описание API произведено в формате Swagger 3.0. Вы можете использовать данный файл для ознакомления с методами API, а также для генерации базового кода для работы с API на удобном для вас языке программирования с помощью утилиты Swagger Codegen или online сервиса Swagger Editor. Авито API для бизнеса предоставляется согласно Условиям использования. По всем вопросам работы с API необходимо обращаться в Службу Поддержки профессиональных инструментов:
This PHP package is automatically generated by the Swagger Codegen project:
- API version: 1
- Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen
Requirements
PHP 5.5 and later
Installation & Usage
Composer
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "git",
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
}
],
"require": {
"GIT_USER_ID/GIT_REPO_ID": "*@dev"
}
}
Then run composer install
Manual Installation
Download the files and include autoload.php
:
require_once('/path/to/SwaggerClient-php/vendor/autoload.php');
Tests
To run the unit tests:
composer install
./vendor/bin/phpunit
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); $apiInstance = new Swagger\Client\Api\AccessApi( // 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() ); $grant_type = "grant_type_example"; // string | Тип OAuth flow. В данный момент поддерживается только client_credentials $client_id = "client_id_example"; // string | $client_secret = "client_secret_example"; // string | try { $result = $apiInstance->getAccessToken($grant_type, $client_id, $client_secret); print_r($result); } catch (Exception $e) { echo 'Exception when calling AccessApi->getAccessToken: ', $e->getMessage(), PHP_EOL; } ?>
Documentation for API Endpoints
All URIs are relative to https://api.avito.ru/
Class | Method | HTTP request | Description |
---|---|---|---|
AccessApi | getAccessToken | GET /token/ | Получение access token |
AutoloadApi | getAutoloadItemInfo | GET /autoload/v1/accounts/{user_id}/items/{ad_id}/ | Получение информации о выгрузке объявления |
AutoloadApi | getLastReport | GET /autoload/v1/accounts/{user_id}/reports/last_report/ | Получение данных последнего актуального отчета |
AutoloadApi | getReportById | GET /autoload/v1/accounts/{user_id}/reports/{reportId}/ | Получение данных отчета по ID |
AutoloadApi | getReports | GET /autoload/v1/accounts/{user_id}/reports/ | Список отчетов об автозагрузке |
AutotekaApi | getActivePackage | GET /autoteka/v1/packages/active_package | Метод для запроса остатка отчётов в текущем пакете пользователя |
AutotekaApi | getPreview | GET /autoteka/v1/previews/{previewId} | Запрос на получение превью по ID |
AutotekaApi | getReport | GET /autoteka/v1/reports/{report_id} | Метод для получения отчета по ID |
AutotekaApi | postPreviewByRegNumber | POST /autoteka/v1/request-preview-by-regnumber | Запрос на создание превью по государственному номеру |
AutotekaApi | postPreviewByVin | POST /autoteka/v1/previews | Запрос на создание превью по VIN |
AutotekaApi | postReport | POST /autoteka/v1/reports | Запрос на создание отчета по превью |
AutotekaApi | putReport | PUT /autoteka/v1/reports/{report_id} | Метод для обновление отчета по его идентификатору в случае отсуствия данных |
ItemApi | getItemInfo | GET /core/v1/accounts/{user_id}/items/{item_id}/ | Получение информации по объявлению |
ItemApi | getItemsStats | POST /core/v1/accounts/{user_id}/stats/items | Получение статистики по объявлениям |
ItemApi | getVasPackagePrice | POST /core/v1/accounts/{user_id}/price/vas_packages | Получение информации о стоимости пакетов дополнительных услуг |
ItemApi | getVasPrices | POST /core/v1/accounts/{user_id}/price/vas | Получение информации о стоимости дополнительных услуг |
ItemApi | putItemVas | PUT /core/v1/accounts/{user_id}/items/{item_id}/vas | Применение дополнительных услуг |
ItemApi | putItemVasPackage | PUT /core/v1/accounts/{user_id}/items/{item_id}/vas_packages | Применение пакета дополнительных услуг |
JobApi | getResume | GET /job/v1/resumes/{resume_id}/ | Просмотр резюме |
JobApi | getResumeContacts | GET /job/v1/resumes/{resume_id}/contacts/ | Доступ к контактным данным соискателя |
JobApi | getResumes | GET /job/v1/resumes/ | Поиск резюме |
RealtyApi | getRealtyBookings | GET /realty/v1/accounts/{user_id}/items/{item_id}/bookings | Получение списка броней по объявлению |
RealtyApi | postRealtyPrices | POST /realty/v1/accounts/{user_id}/items/{item_id}/prices | Актуализация параметров для выбранных периодов |
RealtyApi | putBookingsInfo | POST /core/v1/accounts/{user_id}/items/{item_id}/bookings | Заполнение календаря занятости объекта недвижимости |
Documentation For Models
- AuthError
- AuthErrorError
- AvitoItemAutoteka
- AvitoItemAutotekaImages
- BusinessTripReadiness
- CarImageAutoteka
- Citizenship
- CrashesHistoryAutoteka
- CreateReportResponseBodyAutoteka
- CreateReportResponseDataAutoteka
- Education
- EducationLevel
- EquipmentAutoteka
- EquipmentAutotekaBody
- EquipmentAutotekaBrand
- EquipmentAutotekaColor
- EquipmentAutotekaDrive
- EquipmentAutotekaEquipment
- EquipmentAutotekaHorsepower
- EquipmentAutotekaModel
- EquipmentAutotekaModification
- EquipmentAutotekaTransmission
- EquipmentAutotekaVehicle
- EquipmentAutotekaVolume
- EquipmentAutotekaYear
- ErrorAutoload
- ErrorAutoloadError
- ErrorItemsVas
- EventsAutoteka
- EventsAutotekaAvitoOnSale
- EventsAutotekaAvitoOnSaleAdditionalInfo
- EventsAutotekaBodyRepair
- EventsAutotekaCrashes
- EventsAutotekaDealerDataAvailable
- EventsAutotekaLastMileageRecord
- EventsAutotekaOwners
- EventsAutotekaPledge
- EventsAutotekaPublicPerson
- EventsOthersHistoryAutoteka
- Experience
- FieldError
- Gender
- GetActivePackageResponseBodyAutoteka
- GetActivePackageResponseDataAutoteka
- GetPreviewResponseBodyAutoteka
- GetPreviewResponseDataAutoteka
- GetReportResponseBodyAutoteka
- GetReportResponseDataAutoteka
- HeadAutoteka
- InfoVas
- InlineResponse200
- InlineResponse2001
- InlineResponse2002
- InlineResponse2003
- InlineResponse2003Errors
- InlineResponse2004
- InlineResponse2005
- InlineResponse2006
- InlineResponse2007
- InlineResponse200Result
- ItemIdsRequestBody
- ItemInfoAutoload
- ItemInfoAutoloadFeeInfo
- ItemInfoAvito
- ItemInfoErrorAutoload
- ItemsInfoAvito
- Language
- LanguageLanguage
- LanguageLevel
- Location
- MetaAutoload
- NotFoundError
- NotFoundErrorError
- OtherAutoteka
- OwnersHistoryAutoteka
- PackageAutoteka
- PackageIdRequestBody
- PackageInfoVas
- PackagePriceInfoVas
- ParamPriceItemRealty
- ParamPricesRealty
- Photo
- PostCalendarData
- PostCalendarDataBookings
- PreviewAutoteka
- PreviewDataAutoteka
- PreviewIdOnlyAutoteka
- PriceInfoVas
- PurchasingError
- PurchasingErrorError
- RealtyBooking
- RealtyBookingContact
- RealtyBookingSafeDeposit
- RelocationReadiness
- ReportAutoload
- ReportAutoloadAds
- ReportAutoloadFeePackages
- ReportAutoloadMessages
- ReportAutoloadStatuses
- ReportAutoloadStatusesAvito
- ReportAutoloadStatusesGeneral
- ReportAutoloadStatusesProcessing
- ReportAutoloadVas
- ReportAutoteka
- ReportCollectionAutoload
- ReportCollectionAutoloadInner
- ReportCollectionAutoloadInnerStat
- ReportDataAutoteka
- ReportWithoutDataAutoteka
- RequestPreviewByRegNumberAutoteka
- RequestPreviewByVinAutoteka
- RequestPreviewResponseBodyAutoteka
- RequestPreviewResponseDataAutoteka
- RequestReportByPreviewIdAutoteka
- RestrictionsAutoteka
- RestrictionsAutotekaPledge
- RestrictionsAutotekaPledgeData
- RestrictionsAutotekaPledgePledgeAdditionalData
- RestrictionsAutotekaRegistration
- RestrictionsAutotekaRegistrationAdditionalInfo
- RestrictionsAutotekaStealing
- Resume
- ResumeContact
- ResumeContacts
- ResumeSearchMeta
- ServiceError
- ServiceErrorError
- ServiceInfoAutoteka
- ServiceInfoAutotekaReportCompleteStatus
- ServiceInfoAutotekaReportCompleteStatusUnavailableSources
- ServiceUnavailableError
- ServiceUnavailableErrorError
- ShortStatInfo
- SimplifiedResume
- Specialization
- UpdateReportResponseBodyAutoteka
- UpdateReportResponseDataAutoteka
- ValidatingError
- ValidatingErrorError
- VasApplyAvito
- VasIdRequestBody
- VasPackageApplyAvito
- WorkSchedule
- _
Documentation For Authorization
All endpoints do not require authorization.