imgur

Google chrome rehost image extension

喜夏-厌秋 提交于 2019-11-26 10:00:51
问题 I would like to have a Google Chrome extension to rehost any image I click on. For example, I have a html document with images using <img> tag. I want to have a extension which will rehost that image to an another image host. I saw something like this with the imgur extension. I have no clue where should i begin or what should I do to get this work. Thanks for your help in advance! 回答1: First, you have to get an API key. If a maximum of 50 uploads per hour is sufficient, and you don't want to

Accessing imgUr thru OAuth (uploading to user account)

自古美人都是妖i 提交于 2019-11-26 06:49:38
问题 To start doing this \"simple\" task I\'ve researched for a procedure that I\'ve taken as an example here to follow and reproduce the steps, the procedure can upload an image \"anonymously\": Private ReadOnly ClientId As String = \"My Client ID\" \' => \"...............\" Private ReadOnly ClientSecret As String = \"My Client Secret\" \' => \"........................................\" \' Usage: \' Dim url As String = UploadImage(\"C:\\Image.jpg\") : MessageBox.Show(url) Public Function

Deserializing polymorphic json classes without type information using json.net

[亡魂溺海] 提交于 2019-11-25 21:45:40
问题 This Imgur api call returns a list containing both Gallery Image and Gallery Album classes represented in JSON. I can\'t see how to deserialize these automatically using Json.NET given that there is no $type property telling the deserializer which class is meant to be represented. There is a property called \"IsAlbum\" that can be used to differentiate between the two. This question appears to show one method but it looks like a bit of a hack. How do I go about deserializing these classes?