ImgurNet.Authentication.OAuth2Authentication.OAuth2Authentication C# (CSharp) Метод

OAuth2Authentication() публичный Метод

Creates a new Imgur Authorization based off of a client's ClientId.
public OAuth2Authentication ( string clientId, string clientSecret, bool checkRateLimit ) : System
clientId string The ClientId of your imgur client. Create one here (https://api.imgur.com/oauth2/addclient).
clientSecret string The ClientSecret of your imgur client. Create one here (https://api.imgur.com/oauth2/addclient).
checkRateLimit bool Check, and populate the current ratelimit status of your client.
Результат System
		public OAuth2Authentication(string clientId, string clientSecret, bool checkRateLimit)
		{
			ClientId = clientId;
			ClientSecret = clientSecret;
			AuthenticationType = AuthenticationType.OAuth2;

			RateLimit = new Credits();
			if (!checkRateLimit) return;
			RateLimit = Request.SubmitImgurRequestAsync<Credits>(Request.HttpMethod.Get, Credits.CreditsUrl, this).Result.Data;
		}