title: How do I upload multiple images to an imgur album from command line?
body: <p>This is what I have now, it works on a single image.</p>
  
  <pre><code>curl -vH "Authorization: Client-ID 3e7a4deb7ac67da" -F image=@/path/to/image https://api.imgur.com/3/upload.xml
  </code></pre>
  
  <p>to get the result open in your browser, I have</p>
  
  <pre><code>curl -vH "Authorization: Client-ID 3e7a4deb7ac67da" -F image=@/path/to/image https://api.imgur.com/3/upload.xml | grep -Eo '&lt;[a-z_]+&gt;http[^&lt;]+'|sed 's/^&lt;.\|_./\U&amp;/g;s/_/ /;s/&lt;.*&gt;//' | sed  's/^.*imgur\.com\//http:\/\/imgur.com\//g;s/\.[^.]*$//' | xargs xdg-open 
  </code></pre>
  
  <p>but how can I upload multiple images to an anonymous album ?</p>
  
  <p>I knew I can create an album with</p>
  
  <pre><code>curl -vH "Authorization: Client-ID 3e7a4deb7ac67da" -F "title=imgur"  https://api.imgur.com/3/album
  </code></pre>
  
  <p>Then I guess I need to make some curl calls on each and every one of my images to add them to the album one by one? Or There is some magic command that I can do all of these in just one curl call? (create the album, upload multiple images, and get the album link back)</p>
  
  <p>Imgur <a href="http://api.imgur.com/endpoints/image" rel="nofollow noreferrer">image upload api</a> says there is a <code>album</code> key, but I don't know how to pass it with curl.(I can see the deletehash from the result of last album creation call.)</p>
  
  <p>The ultimate goal is to add some menu to kde dolphin browser( as servicemenu ) Single image upload is already working.</p>
  
  <p><img src="https://i.imgur.com/OBPx8jX.png" alt="screenshot"></p>