-
Notifications
You must be signed in to change notification settings - Fork 0
Home
.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.
-
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) -
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 -
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) -
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) -
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) -
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 -
GROUP_ID
- Community ID (Go to any wall past -> click on date https://vk.com/community?w=wall-11111111_22222 - 11111111 is your ID ) -
CLIENT_ID
andCLIENT_SECRET
from Spotify Developers https://developer.spotify.com/dashboard/applications (create app to parse Spotify playlists) -
HOURS_PERIOD
andMINUTES_PERIOD
- delay between postponed posts -
URL
- from https://api-vk.com/ ->Ключ
(api need to download music)