Imgur OAuth2 Authentication and Download C #

I created a C # program for Windows Form that allows a user to drag an image by pasting the URL of that image into a text box. Now I have to do this API and authenticate with Imgur. Since I will be the only one using this program, this should go easy, but I cannot find a lot of documentation on how to authenticate OAuth with C #. More specifically, I also cannot find documentation on how to upload images from C # to Imgur. In any case, I would like for him to upload the image to a specific album, if that is even possible.

Can anyone help at all?

+4
source share
1 answer

OAuth2 is an authentication standard, here you can find the rfc specification here . This means that many web applications mean that if you have an oauth2 client, you can "log in" to any of these applications. Basically you need to read this Imgur doc, which explains how you need to implement the oauth2 client to log into your application.

In C #, it's just a bunch of HTTP requests, so you can implement it using classes like HttpClient, or you can search for already implemented C # oauth2 client nuget. Then you just pass some URLs to this client and log in.

api api.

+1

Source: https://habr.com/ru/post/1628757/


All Articles