spotify-client
Advanced tools
Comparing version 0.1.0 to 0.1.1
'use strict'; | ||
"user strict"; | ||
Object.defineProperty(exports, '__esModule', { | ||
@@ -9,12 +11,4 @@ value: true | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } | ||
var _xhttp = require('xhttp'); | ||
var _xhttp2 = _interopRequireDefault(_xhttp); | ||
"user strict"; | ||
var singletonClient = false; | ||
@@ -89,6 +83,2 @@ | ||
return this.fetch(url); | ||
/*return xhttp({ | ||
url: url, | ||
method: 'GET' | ||
});*/ | ||
} | ||
@@ -99,11 +89,2 @@ }, { | ||
return this.fetch(url); | ||
/*var headers = { 'Accept': 'application/json'}; | ||
if (this._token) { | ||
headers.Authorization = `Bearer ${this._token}`; | ||
} | ||
return xhttp({ | ||
url: `https://api.spotify.com/v1${url}`, | ||
method: 'GET', | ||
headers | ||
});*/ | ||
} | ||
@@ -110,0 +91,0 @@ }, { |
{ | ||
"name": "spotify-client", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"repository": "Cosmitar/spotify-client", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -16,7 +16,13 @@ # Spotify Web API SDK | ES6 | ||
## Simple usage | ||
Import an entity | ||
##Instalation | ||
add ```package.json``` dependency ```"spotify-client": "latest"``` | ||
```import Artist from './src/entities/Artist';``` | ||
run | ||
```npm install``` | ||
```javascript | ||
import {Artist,Album,Track,User,Playlist,Session} from 'spotify-client'; | ||
``` | ||
## Simple usage | ||
Find (by id) | ||
@@ -43,4 +49,3 @@ ```javascript | ||
```javascript | ||
import User from './src/entities/User'; | ||
import Session from './src/classes/Session'; | ||
import {User,Session} from 'spotify-client'; | ||
@@ -89,3 +94,3 @@ Session.config({ | ||
"user strict"; | ||
import User from './src/entities/User'; | ||
import {User} from 'spotify-client'; | ||
@@ -92,0 +97,0 @@ class Person extends User { |
168
96869
1033