Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 957 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 957 Bytes

Avito-openapi-str-client

Implement request flow for Avito OpenApi in Short Term Rent

Docs

Usage

  1. Register app, get CLIENT_ID and CLIENT_SECRET, put in credentials

  2. Getting link for user authorization STEP=LINK npm start

  3. Getting access token and refresh token from authorization code STEP=TOKEN CODE=<code from redirect> npm start

  4. Refresh access token STEP=REFRESH CODE=<refresh_token> npm start

  5. Get avito bookings info STEP=GET_BOOKINGS TOKEN=<access_token> ITEM_ID=<your item id> USER_ID=<your seller id> npm start

  6. Set bookings info STEP=PUSH_BOOKINGS TOKEN=<access_token> ITEM_ID=<your item id> USER_ID=<your seller id> npm start

  7. Set days params STEP=SET_PARAMS TOKEN=<access_token> ITEM_ID=<your item id> USER_ID=<your seller id> npm start