public string ObtainAccessTokenFromUsernamePassword(string username, string password, ScopeEnum scope) { // Make request based on username/password return(ObtainAccessToken(new Dictionary <string, object> { { "grant_type", "password" }, { "username", username }, { "password", password }, { "scope", scope.GetDescription() } })); }
public string ObtainAccessTokenFromAuthorizationCode(string code, string redirectUri, ScopeEnum scope) { // Make request based on token return(ObtainAccessToken(new Dictionary <string, object> { { "grant_type", "authorization_code" }, { "code", code }, { "redirect_uri", redirectUri }, { "scope", scope.GetDescription() } })); }