ImgurNet.Authentication.ClientAuthentication.ClientAuthentication C# (CSharp) Method

ClientAuthentication() public method

Creates a new Imgur Authorization based off of a client's ClientId.
public ClientAuthentication ( string clientId, bool checkRateLimit ) : ImgurNet.Models
clientId string The ClientId of your imgur client. Create one here (https://api.imgur.com/oauth2/addclient).
checkRateLimit bool Check, and load into the model, the current ratelimit status of your client.
return ImgurNet.Models
        public ClientAuthentication(string clientId, bool checkRateLimit)
        {
            ClientId = clientId;
            AuthenticationType = AuthenticationType.ClientId;

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