11
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

GyazoのURLから画像本体のURLをもらう

Posted at

画像URLに /raw とつけると画像本体のURLにリダイレクトしてくれます

たとえば、上のURLを叩くと下の画像URLにリダイレクトされます
https://i.gyazo.com/f6df71edb5b7f7e2419fe26d9751d943.gif

これはHipchatなどで画像を展開するのに便利です。hubot-gyazoというhubot moduleではこのAPIを利用しています

msg.send "#{url}/raw#.png" for url in urls

11
13
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?