Code Monkey home page Code Monkey logo

Comments (7)

JohnnyCrazy avatar JohnnyCrazy commented on May 26, 2024

Did you modify any code? Or did you replace the ClientID?

If I run it without modification, I can use the example without problems.

from spotifyapi-net.

scefif avatar scefif commented on May 26, 2024

Hi Johnny, The only thing I changed is the ClientID to use my own Spotify App ID. What is the flow of things?
When I run it, I get a browser page to log in. I do the log in and then it gives me two options to Log out or go to account details

from spotifyapi-net.

JohnnyCrazy avatar JohnnyCrazy commented on May 26, 2024

There we go 😃

You need to add http://localhost as a RedirectURL to your Spotify Application (here)
Some more infos are here

from spotifyapi-net.

scefif avatar scefif commented on May 26, 2024

I have set that already. The only other thing I have changed is the Port number (to 8020) as it keeps complaining about port 80

from spotifyapi-net.

JohnnyCrazy avatar JohnnyCrazy commented on May 26, 2024

With changing the port, the redirect URI has to be changed too.
But, spotify doesn't allow redirectURIs like http://localhost:8020 for some reason.

Currently, the only way to solve it, is to find out whats blocking port 80. Do you have XAMPP or something else installed? You can check your ports e.g with netstat -a -b

from spotifyapi-net.

scefif avatar scefif commented on May 26, 2024

It only works if I comment out the line:
auth.StopHttpServer();

Is the idea of this to use the WebAPI to get the tracks/Albums and then to use the Client API to play them? It seems we cannot use the WebAPI to play!

from spotifyapi-net.

JohnnyCrazy avatar JohnnyCrazy commented on May 26, 2024

auth.StopHttpServer() will end the HTTP-Server listen-thread. It's a pretty harsh method and I need to find something better.

Thats one method, yes. Fetch tracks with the WebAPI and then let the spotify player play them (using the LocalAPI).

(You can't play with the SpotifyWebAPI because Spotify didn't implemented it yet)

from spotifyapi-net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.