Skip to content

Commit

Permalink
Move examples to spotipy-dev/spotipy-examples, add as submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanebruckert committed Jan 19, 2025
1 parent e37b1a8 commit d319c6e
Show file tree
Hide file tree
Showing 67 changed files with 8 additions and 1,704 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "examples"]
path = examples
url = [email protected]:spotipy-dev/spotipy-examples.git
4 changes: 2 additions & 2 deletions FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ spotipy can only return fields documented on the Spotify web API https://develop

### How to use spotipy in an API?

Check out [this example Flask app](examples/app.py)
Check out [this example Flask app](https://github.com/spotipy-dev/spotipy-examples/tree/main/apps/flask_api)

### How can I store tokens in a database rather than on the filesystem?

Expand Down Expand Up @@ -51,7 +51,7 @@ must be specified: `search("abba", market="DE")`.
If you cannot open a browser, set `open_browser=False` when instantiating SpotifyOAuth or SpotifyPKCE. You will be
prompted to open the authorization URI manually.

See the [headless auth example](examples/headless.py).
See the [headless auth example](https://github.com/spotipy-dev/spotipy-examples/blob/main/scripts/headless.py).

### My application is not responding

Expand Down
4 changes: 2 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ artist's name::
artist = items[0]
print(artist['name'], artist['images'][0]['url'])

There are many more examples of how to use *Spotipy* in the `Examples
Directory <https://github.com/plamere/spotipy/tree/master/examples>`_ on GitHub.
There are many more examples of how to use *Spotipy* in the `spotipy-examples
repository <https://github.com/spotipy-dev/spotipy-examples>`_ on GitHub.

API Reference
==============
Expand Down
1 change: 1 addition & 0 deletions examples
Submodule examples added at c610a7
27 changes: 0 additions & 27 deletions examples/add_a_saved_album.py

This file was deleted.

29 changes: 0 additions & 29 deletions examples/add_a_saved_track.py

This file was deleted.

29 changes: 0 additions & 29 deletions examples/add_saved_episodes.py

This file was deleted.

29 changes: 0 additions & 29 deletions examples/add_saved_shows.py

This file was deleted.

29 changes: 0 additions & 29 deletions examples/add_tracks_to_playlist.py

This file was deleted.

115 changes: 0 additions & 115 deletions examples/app.py

This file was deleted.

52 changes: 0 additions & 52 deletions examples/artist_albums.py

This file was deleted.

Loading

0 comments on commit d319c6e

Please sign in to comment.