コード例 #1
0
ファイル: Applications.cs プロジェクト: MenNoWar/Chino.Sdk
 /// <summary>
 /// Deletes a Chino Application from the server
 /// </summary>
 /// <param name="id">the id of the application to delete</param>
 /// <exception cref="ChinoApiException">thrown by the api server, when recieving incorrect request data</exception>
 public void Delete(string id)
 {
     ChinoApplication.Delete(this.client, id);
 }
コード例 #2
0
ファイル: Applications.cs プロジェクト: MenNoWar/Chino.Sdk
 /// <summary>
 /// Gets a list of Chino Applications from the server
 /// </summary>
 /// <param name="start">where to start the list</param>
 /// <param name="limit">amount of records to return</param>
 /// <returns>a new instance of the <see cref="ApplicationList"/></returns>
 /// <exception cref="ChinoApiException">thrown by the api server, when recieving incorrect request data</exception>
 public ApplicationList List(int start, int limit)
 {
     return(ChinoApplication.List(this.client, start, limit));
 }
コード例 #3
0
ファイル: Applications.cs プロジェクト: MenNoWar/Chino.Sdk
 /// <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));
 }
コード例 #4
0
ファイル: Applications.cs プロジェクト: MenNoWar/Chino.Sdk
 /// <summary>
 /// Gets specific Application details for a given application id
 /// </summary>
 /// <param name="applicationId">the id of the application to return</param>
 /// <returns>a new instance of the <see cref="ChinoApplication"/> class</returns>
 /// <exception cref="ChinoApiException">thrown by the api server, when recieving incorrect request data</exception>
 public ChinoApplication Read(string applicationId)
 {
     return(ChinoApplication.Read(this.client, applicationId));
 }