Skip to content

Commit

Permalink
updated get_url() docs to mention user token
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
m-charchit committed Jul 4, 2021
1 parent 529204b commit d938435
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down

0 comments on commit d938435

Please sign in to comment.