https://github.com/ouropencode/spotify-request
Spotify API Requests served via SocketIO (https://socket.io)
https://github.com/ouropencode/spotify-request
Last synced: about 1 month ago
JSON representation
Spotify API Requests served via SocketIO (https://socket.io)
- Host: GitHub
- URL: https://github.com/ouropencode/spotify-request
- Owner: ouropencode
- License: mit
- Created: 2014-11-23T10:55:59.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-11-18T12:19:53.000Z (over 9 years ago)
- Last Synced: 2025-09-19T23:27:58.787Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Spotify-Request
----
Spotify-Request is an API server for the Spotify service that serves requests via Socket.io. It allows remote query against the spotify api without local keys.
Currently the following requests are supported:
* Get Track via Spotify URI
### Using the library ###
There are two ways to use this library:
* Hosting a socket.io API server
```
let spotreq = require('spotify-request');
let api_server = new spotreq.APIServer(3000, 'Spotify WEB API KEY', 'Corresponding secret');
```
* Access to the underlying Spotify API proxy (SpotifyRequest)
```
let spotreq = require('spotify-request');
let proxy = new spotreq.SpotifyRequest('Spotify WEB API KEY', 'Corresponding secret');
```
There are slightly larger examples in `./examples`, but you should be able to follow the source for more details :)