{"id":13760557,"url":"https://github.com/loverajoel/spotify-sdk","last_synced_at":"2025-09-05T22:40:43.111Z","repository":{"id":34689442,"uuid":"38663908","full_name":"loverajoel/spotify-sdk","owner":"loverajoel","description":"Spotify SDK | Entity and Collection oriented | Browser and Node support!","archived":false,"fork":false,"pushed_at":"2021-08-22T09:06:03.000Z","size":1968,"stargazers_count":229,"open_issues_count":13,"forks_count":37,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-30T09:05:42.361Z","etag":null,"topics":["es6","javascript","spotify","spotify-sdk"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/loverajoel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-07T04:24:48.000Z","updated_at":"2024-12-30T18:47:02.000Z","dependencies_parsed_at":"2022-09-15T01:11:53.302Z","dependency_job_id":null,"html_url":"https://github.com/loverajoel/spotify-sdk","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loverajoel%2Fspotify-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loverajoel%2Fspotify-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loverajoel%2Fspotify-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loverajoel%2Fspotify-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loverajoel","download_url":"https://codeload.github.com/loverajoel/spotify-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247464220,"owners_count":20942970,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["es6","javascript","spotify","spotify-sdk"],"created_at":"2024-08-03T13:01:12.931Z","updated_at":"2025-04-06T10:10:39.074Z","avatar_url":"https://github.com/loverajoel.png","language":"JavaScript","funding_links":[],"categories":["SDK","SDK [🔝](#readme)"],"sub_categories":["Other","其它"],"readme":"# Spotify SDK\n\n[![npm version](https://badge.fury.io/js/spotify-sdk.svg)](http://badge.fury.io/js/spotify-sdk)  [![Documentation Status](https://doc.esdoc.org/github.com/loverajoel/spotify-sdk/badge.svg)](https://doc.esdoc.org/github.com/loverajoel/spotify-sdk/)\n\n\u003e Unofficial SDK recommended for Spotify in his [developer center](https://developer.spotify.com/web-api/code-examples/)\n\nEntity oriented SDK to work with the [Spotify Web API](https://developer.spotify.com/web-api/).\n\nEntity oriented? What? Yes, you will always receive entities+helpers as the API's response.\n\n### An awesome example\n\n\u003e Too simple like: Get my User then retrieve my Playlist, then add a Track to one Playlist.\n\n```javascript\nuser.me().then((myUser) =\u003e { // -\u003e return a User entity with helpers\n    myUser.playlists().then((playlistsCollection) =\u003e {\n        playlistsCollection.first().tracks // -\u003e tracksCollections\n        playlistsCollection.first().addTrack(trackEntity) // -\u003e add a track to the playlist\n    });\n});\n```\n\n## More Examples\n\n[Basic example](https://github.com/loverajoel/spotify-sdk/blob/master/examples/basic.js)\n\n[Complex example](https://github.com/loverajoel/spotify-sdk/blob/master/examples/oauth.js)\n\n## Showcase - Projects using Spotify-SDK\n\n#### - [MagicPlaylist](http://magicplaylist.co/)\n\n#### - [20v](http://20v.co/)\n\n## Getting Started\n\nYou can get it on npm.\n\n`npm install spotify-sdk --save`\n\n\n## How to start?\n\nAfter installing, you should add the SDK to your project.\n\n```javascript\nimport {Client, TrackHandler, PlaylistHandler} from 'spotify-sdk';\n```\n\nYou can import all entities, handlers and resources of the library.\n\n### Init the client\n\n```javascript\nlet client = Client.instance;\n\nclient.settings = {\n    clientId: 'CLIENT_ID',\n    secretId: 'SECRET_ID'\n};\n```\n\nIf your applications require methods that need authentication:\n\n```javascript\nclient.settings = {\n    clientId: 'CLIENT_ID',\n    secretId: 'SECRET_ID',\n    scopes: [SCOPE, SCOPE2],\n    redirect_uri: 'REDIRECT_URL'\n};\n\nclient.token = 'TOKEN';\n```\n[Here](examples/oauth.js) there is a suggested implementation for login.\n\n## Documentation\n\n[Read the documentation here](https://doc.esdoc.org/github.com/loverajoel/spotify-sdk/)\n\n## Node Support\nNow you can use the sdk in node!\n\n## Browser Support\n\nThis SDK use Babel and Polyfill in order to add comptiblity with old browseres.\n\n| \u003cimg src=\"http://vignette2.wikia.nocookie.net/inciclopedia/images/4/45/Google_Chrome_Logo.png/revision/20111125001822\" width=\"48px\" height=\"48px\" alt=\"Chrome logo\"\u003e | \u003cimg src=\"http://people.mozilla.org/~faaborg/files/shiretoko/firefoxIcon/firefox-512.png\" width=\"48px\" height=\"48px\" alt=\"Firefox logo\"\u003e | \u003cimg src=\"http://vignette1.wikia.nocookie.net/fallout/images/a/a0/Internet_Explorer_9_logo.png/revision/latest?cb=20110908011258\u0026path-prefix=es\" width=\"48px\" height=\"48px\" alt=\"Internet Explorer logo\"\u003e | \u003cimg src=\"https://upload.wikimedia.org/wikipedia/commons/5/53/Opera_O.png\" width=\"48px\" height=\"48px\" alt=\"Opera logo\"\u003e | \u003cimg src=\"http://icons.iconarchive.com/icons/hamzasaleem/stock-style-2/512/Safari-icon.png\" width=\"48px\" height=\"48px\" alt=\"Safari logo\"\u003e |\n|:---:|:---:|:---:|:---:|:---:|\n| 42+ ✔ | 41+ ✔ | 9+ ✔ | 29+ ✔ | 8 ✔ |\n\n\n## Development\n\n`git clone git@github.com:loverajoel/spotify-sdk.git`\n\n`npm install`\n\n`npm run watch`\n\n## Contributing\n\nPull requests and issues are very welcome.\nIf you have found an bug, please open an issue.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floverajoel%2Fspotify-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floverajoel%2Fspotify-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floverajoel%2Fspotify-sdk/lists"}