title: Firebase Storage REST API
body: <p>I need very simple static image server for my flutter app. I am thinking about Cloud Storage, because I don't want to worry about own server administrating. I am using experimental Flutter for Desktop as tool for preparation data for mobile app, so I can use only REST API. I found out that Firebase Storage doesn't have own REST API and uses Google Cloud's one. To upload image to Cloud Storage I should make something like this:</p>
  
  <pre><code>curl -X POST --data-binary @[IMAGE_LOCATION] \
  -H "Authorization: Bearer [OAUTH2_TOKEN]" \
  -H "Content-Type: image/jpeg" \
  "https://www.googleapis.com/upload/storage/v1/b/[BUCKET_NAME]/o?uploadType=media&amp;name=[IMAGE_NAME]"
  </code></pre>
  
  <p>The problem is I can't understand how to get <code>[OAUTH2_TOKEN]</code> (access token) from my Dart code, and how to administrate my images (should I do something with Firebase Admin SDK?)</p>
  
  <p>Could anyone help me, please?</p>