From d93843593ddb2adae7b7b882188d6b069a1c3e22 Mon Sep 17 00:00:00 2001 From: Charchit-beginner <77086901+Charchit-beginner@users.noreply.github.com> Date: Mon, 5 Jul 2021 01:50:21 +0530 Subject: [PATCH] updated get_url() docs to mention user token when I try to get url without any token . It gives me error. get_url() missing 1 required positional argument: 'token'. So updated the docs to add a user token. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 207df7f..078c719 100644 --- a/README.md +++ b/README.md @@ -431,10 +431,10 @@ storage.child("images/example.jpg").download("downloaded.jpg") ### get_url -The get_url method takes the path to the saved database file and returns the storage url. +The get_url method takes the path to the saved database file and user token which returns the storage url. ``` -storage.child("images/example.jpg").get_url() +storage.child("images/example.jpg").get_url(user["idToken"]) # https://firebasestorage.googleapis.com/v0/b/storage-url.appspot.com/o/images%2Fexample.jpg?alt=media ```