コード例 #1
0
ファイル: Proxy.cs プロジェクト: adamfoneil/AxosoftAPI
 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() }
     }));
 }
コード例 #2
0
ファイル: Proxy.cs プロジェクト: adamfoneil/AxosoftAPI
 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() }
     }));
 }