ImgurNet.Authentication.OAuth2Authentication.GrantTypeFromOAuthType C# (CSharp) Method

GrantTypeFromOAuthType() private static method

Generates a grant_type from the OAuth2 Type used in this authentication
private static GrantTypeFromOAuthType ( OAuth2Type oAuth2Type ) : string
oAuth2Type OAuth2Type
return string
		private static string GrantTypeFromOAuthType(OAuth2Type oAuth2Type)
		{
			switch (oAuth2Type)
			{
				case OAuth2Type.Code:
					return "authorization_code";
				case OAuth2Type.Pin:
					return "pin";
				case OAuth2Type.Token:
					return "token";

				default:
					throw new ArgumentOutOfRangeException("oAuth2Type");
			}
		}
	}