Imgur.API.Models.Impl.OAuth2Token.OAuth2Token C# (CSharp) Method

OAuth2Token() public method

Initializes a new instance of the OAuth2Token class.
public OAuth2Token ( string accessToken, string refreshToken, string tokenType, string accountId, string accountUsername, int expiresIn ) : System
accessToken string The access token.
refreshToken string The refresh token.
tokenType string The type of token, typically "Bearer".
accountId string The account id.
accountUsername string The account username.
expiresIn int The time in seconds when the token expires. Usually one month from the request.
return System
        public OAuth2Token(string accessToken, string refreshToken, string tokenType, string accountId,
            string accountUsername, int expiresIn)
        {
            AccessToken = accessToken;
            RefreshToken = refreshToken;
            TokenType = tokenType;
            AccountId = accountId;
            AccountUsername = accountUsername;
            ExpiresIn = expiresIn;
        }
OAuth2Token