Uploading an image to Github issue with API and Python -
i using github api create issue (specifically, requests module in python).
i need include picture in issue content, could't find way worked me.
could please suggest works python?
thanks
edit: done github markdowns linking pictures stored @ amazon s3.
assuming able post things issues page of given repository follow these steps post image. @ first found annoying post pictures github... github uses markdown , markdown can theoretically use image sourced on computer (this believe works on markdown host) can provide link or image source on internet... particularly convenient posting pictures github... github or can use dropbox, picasa, photobucket, instagram, or flixster or 20 other image hosting services on internet, point once image has href="http://photobucket.com/myimage/3549604690"
can host markdown file.
like so:
![alt text](/path/to/img.jpg) ![alt text](/path/to/img.jpg "optional title") ![github logo](/images/logo.png) format: ![alt text](url)
meaning in case:
![screen shot of python stuff](http://photobucket.com/myimage/3549604690 "screen shot")
screen shot of python stuff http://photobucket.com/myimage/3549604690 notice works on stackoverflow well.
for guides on markdown syntax: http://daringfireball.net/projects/markdown/syntax#img https://guides.github.com/features/mastering-markdown/
so step step (if want through github) , not apply other apis have user:
create new github repo or use existing repo. (your choice).
make post request insert image inside repository's files.
post issue repository , use url of image hosted. i've seen when images added repository go path:
https://github.com/myuser/picturehoster/blob/master/myscreenshot.jpg
.
python should brush teeth! tried work , here:
![screen shot of python stuff](https://github.com/myuser/picturehoster/blob/master/myscreenshot.jpg "screen shot")
not working.
. (or find out go github page click on repositories click on image inside repo right click on once it's open , copy image url). use different picture hosting service same right click on inside flixster account , copy/paste image url.
Comments
Post a Comment