As wireframed says, streaming on-demand is a Spotify Premium feature. If the user has Premium, you can make use of the following SDKs:
If you are developing for mobile: Spotify discontinued streaming in third-party apps. Instead, you make use of the App Remote SDK.
If you are developing for the web: you can make use of the Web Playback SDK.
are you using a premium account? Free accounts have limitations and that also applies when using API.