Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This is [the recommended way to use it by `httpx`](https://www.python-httpx.org/
From there, you can search for some terms:

```pycon
>>> client.search('Daft Punk')
>>> client.search("Daft Punk")
<PaginatedList [
<Track: One More Time>,
<Track: I Feel It Coming>,
Expand All @@ -35,7 +35,7 @@ The above returned a lot of tracks, wrapped in a {class}`PaginatedList <deezer.P
If you wanted to search for artists instead, you may use the {meth}`Client.search_artists() <deezer.Client.search_artists>` method:

```pycon
>>> client.search_artists('Daft Punk')
>>> client.search_artists("Daft Punk")
<PaginatedList [
<Artist: Daft Punk>,
<Artist: Daft Punk - Stardust>,
Expand Down Expand Up @@ -77,7 +77,7 @@ For example, when you get an {class}`Artist <deezer.Artist>`, you may call one o
Let's try from the initial example:

```pycon
>>> daft_punk = client.search_artists('Daft Punk')[0]
>>> daft_punk = client.search_artists("Daft Punk")[0]
>>> daft_punk.get_albums()[:4]
[<Album: Random Access Memories>,
<Album: TRON: Legacy Reconfigured>,
Expand Down Expand Up @@ -156,7 +156,7 @@ To integrate the OAuth flow in your application, we recommend looking at other l
Once the OAuth2 flow is complete, Deezer should give you a token which can be passed to the {class}`Client <deezer.Client>` class:

```python
client = deezer.Client(access_token='your-super-secret-token')
client = deezer.Client(access_token="your-super-secret-token")
```

From there, you should be able to perform authenticated requests.
Loading