From 7a734e65acdb10096413af41be43b9e17cb3b39b Mon Sep 17 00:00:00 2001 From: Daniel Leu Date: Tue, 30 Jan 2018 15:26:07 +0100 Subject: [PATCH] Update readme instructions (for generating the app key and secret) (#12) --- README.md | 3 ++- app/conf.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2dddf61..20587dd 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,8 @@ just like you'd browse them through your crates :) #### How to start the app -- Checkout the repo +- Check out the repo - `yarn` or `npm i` +- Go to discogs.com, the settings page > developers and create a new app (after you have logged in). The "Callback URL" field should be set to `soundscrate://`. After you create the application, you should see a page which contains the "Consumer Key" and "Consumer Secret" tokens. Copy them over to the [config](app/conf.js). The "Consumer Key" should be a value for the `key` field and the "Consumer Secret" should correspond to the `secret` field. - Make sure you have react native cli installed globally, and do `react-native run-ios` or `react-native run-android` in the root directory of the project. - Happy browsing! diff --git a/app/conf.js b/app/conf.js index a86c977..9922020 100644 --- a/app/conf.js +++ b/app/conf.js @@ -2,8 +2,8 @@ export default { discogs: { oauth: { - key: 'WieOJMYurdVQKBkKEwLM', - secret: 'FarETUZNWCIBSQraJlbGzQgXEogVplMC', + key: 'YOUR_CONSUMER_KEY', + secret: 'YOUR_CONSUMER_SECRET', request_token_url: 'https://api.discogs.com/oauth/request_token', authorize_url: 'https://discogs.com/oauth/authorize?oauth_token=', access_token_url: 'https://api.discogs.com/oauth/access_token',