Gramtify is a simple Node JS app that lets your friends on Telegram see what you're listening to right now on Spotify!
Uses the Spotify Web API for the authorization flow and getting data from the player, and GramJS to publish that data to the user's Telegram profile.
- Node JS version 17.5.0 or higher
- Clone this repository to your device
- Run terminal in the directory of the cloned repository
- Run the command
npm i
(assuming that NPM is present in the PATH variable) - Configure the config.json file
- Run the application using "npm start" while in the repository directory
But you will need some data to work with the API, which should be entered in the config file.
To work with the Spotify Web API, you will need to complete following steps:
- Go to your Dashboard and register a new app by clicking on "Create App" and enter the following information:
- App Name: "My App"
- App description: anything
- Redirect URI:
http://localhost:54832/callback
- Go to your Dashboard again and click on the name of the app you just created. Next, click on the "Settings" button. CLIENT_ID and CLIENT_SECRET can be found there.
- Copy the CLIENT_ID and CLIENT_SECRET below and enter them into config.json
- Go to https://my.telegram.org/apps, login and create a new app, enter any name and description.
- API_ID and API_HASH will appear on the page immediately after the first step. Copy them and paste them into the appropriate fields in config.json.
test
This is my first Node JS app and my first repository on GitHub at all. I would be very happy to receive any edits, contributions, comments, ideas, as well as collaboratively fixing issues of Gramtify.