1
culex
Spotify Api v1.07 RC 3
  • 2021/4/10 16:56

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


This is a module to show recently played songs on spotify. It uses jwulssons php api for Spotify found herehttps://github.com/jwilsson/spotify-web-api-php And displays the recent played list in a carousel block.

Steps to set up the module.

Spotify developer side
1) Go to developer.spotify.com -> log in using your normal spotify procedure.
2) Go to dashboard and create a new app. Call it anything you like. The press the big green app.
3) Copy the two values clientid and client secret. You'll use them in the module settings.
4) Edit your app settings. And fill out what you want but importantly put the link the the module/agent.php as redirect uri (eks.https://www.yoursite.com/modules/spotifyapi/agent.php).

Module settings
1) Go to the spotifyapi settings and put the values clientid & client secret in the text boxex.
2) Check that the URI link in the module matches the one you created in spotify

And it should work.
See it in action here www.culex.dk (down right) and www.culex.dk/modules/spotifyapi/ for a weekly chart

Test inviroment

Download from trunk here.
https://github.com/djculex/spotifyapi/archive/refs/heads/main.zip

Or forkhttps://github.com/djculex/spotifyapi

2
heyula
Re: Spotify Api v1.07 RC 3
  • 2021/4/10 16:59

  • heyula

  • Theme Designer

  • Posts: 590

  • Since: 2008/4/24


Thanks for sharing

3
culex
Re: Spotify Api v1.07 RC 3
  • 2021/4/11 9:51

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


My pleasure. It's been a while since I have had something to share

Quote:

heyula wrote:
Thanks for sharing

Login

Who's Online

193 user(s) are online (97 user(s) are browsing Support Forums)


Members: 0


Guests: 193


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits