Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Add the following to the `config.el` file:
```

In order to get the client ID and client secret, you need to create a
[Spotify app][app-list], specifying <http://localhost:8080/smudge-api-callback>
[Spotify app][app-list], specifying <http://127.0.0.1:8080/smudge_api_callback>
as the redirect URI (or whichever port you have specified via customize). The
OAuth2 exchange is handled by `simple-httpd`. If you are not already using
this package for something else, you should not need to customize this port.
Expand Down Expand Up @@ -188,9 +188,11 @@ a description:
![Creating a Spotify App 1/3](./img/spotify-app-01.png)

After creating the new app, click the **Edit Settings**, scroll down a little bit,
type <http://localhost:8080/smudge-api-callback> as the Redirect URI for the
type <http://127.0.0.1:8080/smudge_api_callback> as the Redirect URI for the
application, and click **Add**. Then, hit **Save**.

**IMPORTANT**: After recent changes you must make sure the Redirect URI has underscores '_' and not hyphens '-'!

![Creating a Spotify App 2/3](./img/spotify-app-02.png)

At this point, the client ID and the client secret are available, so set those values to
Expand Down
1 change: 1 addition & 0 deletions smudge-api.el
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ Replaces functionality from built-in OAuth lib to call smudge-specific
function that runs a local httpd for code -> token exchange."
(let ((inhibit-message t))
(oauth2-request-access
auth-url
token-url
client-id
client-secret
Expand Down