{"id":24001718,"url":"https://github.com/maiconrs95/spotify-sdk-wrapper","last_synced_at":"2025-02-25T09:43:55.998Z","repository":{"id":57367865,"uuid":"271574797","full_name":"maiconrs95/spotify-sdk-wrapper","owner":"maiconrs95","description":"UMD Spotify SDK :loud_sound:","archived":false,"fork":false,"pushed_at":"2020-07-12T06:13:47.000Z","size":65,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-16T09:31:55.453Z","etag":null,"topics":["babel","javascript","tdd","umd-modules","webpack"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maiconrs95.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-11T14:57:51.000Z","updated_at":"2023-03-09T02:13:36.000Z","dependencies_parsed_at":"2022-08-23T19:30:54.008Z","dependency_job_id":null,"html_url":"https://github.com/maiconrs95/spotify-sdk-wrapper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maiconrs95%2Fspotify-sdk-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maiconrs95%2Fspotify-sdk-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maiconrs95%2Fspotify-sdk-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maiconrs95%2Fspotify-sdk-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maiconrs95","download_url":"https://codeload.github.com/maiconrs95/spotify-sdk-wrapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240645173,"owners_count":19834390,"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":["babel","javascript","tdd","umd-modules","webpack"],"created_at":"2025-01-08T00:37:39.029Z","updated_at":"2025-02-25T09:43:55.889Z","avatar_url":"https://github.com/maiconrs95.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spotify UMD Wrapper\n\n[![tdd](https://img.shields.io/badge/maiconsilva-spotidy--umd--wrapper-blue)](https://maiconsilva.com) [![licence mit](https://img.shields.io/badge/Licence-MIT-green.svg)](https://github.com/maiconrs95/spotify-sdk-wrapper/blob/master/LICENSE.md) [![Build Status](https://travis-ci.com/maiconrs95/spotify-sdk-wrapper.svg?branch=master)](https://travis-ci.com/maiconrs95/spotify-sdk-wrapper) [![Coverage Status](https://coveralls.io/repos/github/maiconrs95/spotify-sdk-wrapper/badge.svg?branch=master)](https://coveralls.io/github/maiconrs95/spotify-sdk-wrapper?branch=master)\n\nA wrapper to work with the [Spotify Web API](https://developer.spotify.com/documentation/web-api/)\n\n## Browser Support\n\nThis library relies on [Fetch API](https://fetch.spec.whatwg.org/). And this API is supported in the following browsers.\n\n![Chrome](https://cloud.githubusercontent.com/assets/398893/3528328/23bc7bc4-078e-11e4-8752-ba2809bf5cce.png) | ![Firefox](https://cloud.githubusercontent.com/assets/398893/3528329/26283ab0-078e-11e4-84d4-db2cf1009953.png) | ![Opera](https://cloud.githubusercontent.com/assets/398893/3528330/27ec9fa8-078e-11e4-95cb-709fd11dac16.png) | ![Safari](https://cloud.githubusercontent.com/assets/398893/3528331/29df8618-078e-11e4-8e3e-ed8ac738693f.png) | ![IE](https://cloud.githubusercontent.com/assets/398893/3528325/20373e76-078e-11e4-8e3a-1cb86cf506f0.png) |\n--- | --- | --- | --- | --- |\n39+ ✔ | 42+ ✔ | 29+ ✔ | 10.1+ ✔ | Nope ✘ |\n\n## Dependencies\n\nThis library depends on [fetch](https://fetch.spec.whatwg.org/) to make requests to the Spotify Web API. For environments that don't support fetch, you'll need to provide a [polyfill](https://github.com/github/fetch) to browser or [polyfill](https://github.com/bitinn/node-fetch) to Node.\n\n## Installation\n\n```sh\n$ npm install spotify-sdk-wrapper --save\n```\n\n## How to use\n\n### ES6\n\n```js\n// to import a specific method\nimport SpotifyWrapper from 'spotify-sdk-wrapper';\n\nconst spotify = new SpotifyWrapper({\n  token: 'YOUR_TOKEN_HERE'\n});\n\n// using  method\nspotify.search.artists('Incubus');\n```\n\n### CommonJS\n\n```js\nconst SpotifyWrapper = require('spotify-sdk-wrapper').default;\n\nconst spotify = new SpotifyWrapper({\n  token: 'YOUR_TOKEN_HERE'\n});\n```\n\n### UMD in Browser\n\n```html\n\u003c!-- to import non-minified version --\u003e\n\u003cscript src=\"spotify-wrapper.umd.js\"\u003e\u003c/script\u003e\n\n\u003c!-- to import minified version --\u003e\n\u003cscript src=\"spotify-wrapper.umd.min.js\"\u003e\u003c/script\u003e\n```\n\nAfter that the library will be available to the Global as `SpotifyWrapper`. Follow an example:\n\n```js\n\nconst spotify = new SpotifyWrapper({\n  token: 'YOUR_TOKEN_HERE'\n});\n\nconst albums = spotify.search.albums('Choosen Artist');\n```\n\n## Methods\n\n\u003e Follow the methods that the library provides.\n\n### search.albums(query)\n\n\u003e Search for informations about Albums with provided query. Test in [Spotify Web Console](https://developer.spotify.com/web-api/console/get-search-item/) with type defined as *album*.\n\n**Arguments**\n\n| Argument | Type    | Options           |\n|----------|---------|-------------------|\n|`query`   |*string* | 'Any search query'|\n\n\n**Example**\n\n```js\nspotify.search.albums('Incubus')\n  .then(data =\u003e {\n    // do what you want with the data\n  })\n```\n\n### search.artists(query)\n\n\u003e Search for informations about Artists with provided query. Test in [Spotify Web Console](https://developer.spotify.com/web-api/console/get-search-item/) with type defined as *artist*.\n\n**Arguments**\n\n| Argument | Type    | Options           |\n|----------|---------|-------------------|\n|`query`   |*string* | 'Any search query'|\n\n\n**Example**\n\n```js\nspotify.search.artists('Incubus')\n  .then(data =\u003e {\n    // do what you want with the data\n  })\n```\n\n### search.tracks(query)\n\n\u003e Search for informations about Tracks with provided query. Test in [Spotify Web Console](https://developer.spotify.com/web-api/console/get-search-item/) with type defined as *track*.\n\n**Arguments**\n\n| Argument | Type    | Options           |\n|----------|---------|-------------------|\n|`query`   |*string* | 'Any search query'|\n\n\n**Example**\n\n```js\nspotify.search.tracks('Drive')\n  .then(data =\u003e {\n    // do what you want with the data\n  })\n```\n\n### search.playlists(query)\n\n\u003e Search for informations about Playlist with provided query. Test in [Spotify Web Console](https://developer.spotify.com/web-api/console/get-search-item/) with type defined as *playlist*.\n\n**Arguments**\n\n| Argument | Type    | Options           |\n|----------|---------|-------------------|\n|`query`   |*string* | 'Any search query'|\n\n\n**Example**\n\n```js\nspotify.search.playlists('Happy Day')\n  .then(data =\u003e {\n    // do what you want with the data\n  })\n```\n\n### album.getAlbum(id)\n\n\u003e Search for informations about a specific Album with provided id. Test in [Spotify Web Console](https://developer.spotify.com/web-api/console/get-album/).\n\n**Arguments**\n\n| Argument | Type    | Options           |\n|----------|---------|-------------------|\n|`id`   |*string* | 'Specific id'|\n\n\n**Example**\n\n```js\nspotify.album.getAlbum('4aawyAB9vmqN3uQ7FjRGTy')\n  .then(data =\u003e {\n    // do what you want with the data\n  })\n```\n\n### album.getAlbums(ids)\n\n\u003e Search for informations about some Albums with all id's. Test in [Spotify Web Console](https://developer.spotify.com/web-api/console/get-several-albums/).\n\n**Arguments**\n\n| Argument | Type    | Options           |\n|----------|---------|-------------------|\n|`ids`   |*Array of strings* | ['id1', 'id2']|\n\n**Example**\n\n```js\nspotify.album.getAlbums(['4aawyAB9vmqN3uQ7FjRGTy', '1A2GTWGtFfWp7KSQTwWOyo'])\n  .then(data =\u003e {\n    // do what you want with the data\n  })\n```\n\n### album.getTracks(id)\n\n\u003e Search for all tracks in a specific Album with provided id. Test in [Spotify Web Console](https://developer.spotify.com/web-api/console/get-album-tracks/).\n\n**Arguments**\n\n| Argument | Type    | Options           |\n|----------|---------|-------------------|\n|`id`   |*string* | 'Specific id'|\n\n**Example**\n\n```js\nspotify.album.getTracks('4aawyAB9vmqN3uQ7FjRGTy')\n  .then(data =\u003e {\n    // do what you want with the data\n  })\n```\n\n## Tests\n\n```sh\n$ npm run test\n```\n\n## Build\n\n```sh\n$ npm run build:all\n```\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](https://github.com/maiconrs95/spotify-sdk-wrapper/blob/master/CONTRIBUTING.MD) for details on our code of conduct, and the process for submitting pull requests to us.\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags).\n\n## Authors\n\n* **Maicon Silva** - *Initial work* - [Site](https://maiconsilva.com)\n\n## Authors\n\n| ![Maicon Silva](https://avatars2.githubusercontent.com/u/19610095?v=3\u0026s=150)|\n|:---------------------:|\n|  [Maicon Silva](https://github.com/maiconsilva/)   |\n\nSee also the list of [contributors](https://github.com/maiconrs95/spotify-sdk-wrapper/contributors) who participated in this project.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaiconrs95%2Fspotify-sdk-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaiconrs95%2Fspotify-sdk-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaiconrs95%2Fspotify-sdk-wrapper/lists"}