From 1a03750ecf9db229f4435bc38a7987ca8b7a2732 Mon Sep 17 00:00:00 2001 From: waterafternoon Date: Sat, 22 Jul 2017 08:23:33 -0700 Subject: [PATCH] Passing credentials into method clear example of using credentials without having to use environment variables --- docs/index.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/index.rst b/docs/index.rst index 6a0db95..6283ed8 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -125,7 +125,10 @@ Authorization Code Flow ======================= To support the **Authorization Code Flow** *Spotipy* provides a utility method ``util.prompt_for_user_token`` that will attempt to authorize the -user. You can pass your app credentials directly into the method as arguments, +user. You can pass your app credentials directly into the method as arguments:: + + util.prompt_for_user_token(username,scope,client_id='your-app-redirect-url',client_secret='your-app-redirect-url',redirect_uri='your-app-redirect-url') + or if you are reluctant to immortalize your app credentials in your source code, you can set environment variables like so::