Skip to content
This repository has been archived by the owner on Apr 18, 2022. It is now read-only.
Vladimir Kiselev edited this page Mar 9, 2021 · 11 revisions

How To make it work? You need to create:

.env

FIRST_RUN=true
MYSQL_SERVER=
MYSQL_DATABASE_NAME=
MYSQL_USER=
MYSQL_PASSWORD=
HOURS_PERIOD=
MINUTES_PERIOD=
ACCESS_TOKEN=
KATE_MOBILE_TOKEN=
TOKEN=
USER_ACCESS_TOKEN=
URL=
OWNER_ID=
GROUP_ID=
ADMIN_ID=
CLIENT_ID=
CLIENT_SECRET=
START_ONCE=true
SAVE_LOGS=true

*FIRST_RUN=true - if true -> initial create DB Schema and Tables with seed.

  1. MySQL Database, a user: MYSQL_SERVER=IP or domain of MySQL server MYSQL_USER=yourUser MYSQL_PASSWORD=yourPass MYSQL_DATABASE_NAME=databaseSchema Port 3306 (default)

  2. Fill tables with data Playlists - contains Spotify Playlist Uri (see screenshot) and its name. console_Photostocks - contains URLs, such as https://www.deviantart.com/topic/* (replace * with any topic name) If first run - initially filled 16d1981c7ca862232.png 2e324a62384c06473.png 3d0a9f6bd38d856a8.md.png

  3. VK user account (without 2FA, just phone number and password). Make sure that this user has Community admin rights ( ex. https://vk.com/piblic12345?act=users&tab=admins)

  4. Log in user and open page https://oauth.vk.com/authorize?client_id=2685278&scope=1073737727&redirect_uri=https://oauth.vk.com/blank.html&display=page&response_type=token&revoke=1 copy -> KATE_MOBILE_TOKEN (need to upload attachments)

  5. Create Standalone APP https://vk.com/editapp?act=create -> pass App ID here (YOURAPPID) https://oauth.vk.com/authorize?client_id=YOURAPPID&scope=notify,photos,friends,audio,video,notes,pages,docs,status,questions,offers,wall,groups,notifications,stats,ads,offline&redirect_uri=http://api.vk.com/blank.html&display=page&response_type=token then open page copy and paste &token=.... -> TOKEN (need to upload wall post as your APP)

  6. OWNER_ID - Admin user ID (Go to any wall past -> click on date https://vk.com/user?w=wall-11111111_22222 - 11111111 is your ID, copy and paste it ) ADMIN_ID - any user (can be friend of owner) to send logs in private messages

  7. GROUP_ID - Community ID (Go to any wall past -> click on date https://vk.com/community?w=wall-11111111_22222 - 11111111 is your ID )

  8. CLIENT_ID and CLIENT_SECRET from Spotify Developers https://developer.spotify.com/dashboard/applications (create app to parse Spotify playlists)

  9. HOURS_PERIOD and MINUTES_PERIOD - delay between postponed posts

  10. URL - from https://api-vk.com/ -> Ключ (api need to download music)