From 6c0fc1d0b8b2c985b2ef9cdfac084764179126a4 Mon Sep 17 00:00:00 2001 From: Ahmed Nazir Date: Fri, 2 Aug 2019 23:04:15 +0600 Subject: [PATCH] Incomplete documentation This will save many programmer's time. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cdc610b..6024d72 100644 --- a/README.md +++ b/README.md @@ -378,9 +378,9 @@ The put method takes the path to the local file and an optional user token. ```python storage = firebase.storage() # as admin -storage.child("images/example.jpg").put("example2.jpg") +file = storage.child("images/example.jpg").put("example2.jpg") # as user -storage.child("images/example.jpg").put("example2.jpg", user['idToken']) +file = storage.child("images/example.jpg").put("example2.jpg", user['idToken']) ``` ### download @@ -396,7 +396,7 @@ storage.child("images/example.jpg").download("downloaded.jpg") The get_url method takes the path to the saved database file and returns the storage url. ``` -storage.child("images/example.jpg").get_url() +storage.child("images/example.jpg").get_url(file['downloadTokens']) # https://firebasestorage.googleapis.com/v0/b/storage-url.appspot.com/o/images%2Fexample.jpg?alt=media ```