Exemple #1
0
 /// <summary>
 /// Creates a new Chino Application on the api server
 /// </summary>
 /// <param name="name">the name or description of the application</param>
 /// <param name="grantType">the <see cref="ApplicationGrantType"/> to use for user logins</param>
 /// <param name="redirectUrl">the url to return after successful login. Requires <see cref="ApplicationGrantType.authorization_code"/>.</param>
 /// <returns>the newly generated <see cref="ChinoApplication"/></returns>
 /// <exception cref="ChinoApiException">thrown by the api server, when recieving incorrect request data</exception>
 public ChinoApplication Create(string name, ApplicationGrantType grantType, string redirectUrl)
 {
     return(ChinoApplication.Create(this.client, name, grantType, redirectUrl));
 }