コード例 #1
0
 /// <summary>
 /// Creates a new client based on the specified <paramref name="options"/>.
 /// </summary>
 /// <param name="options">The options for the request to the API.</param>
 /// <returns>An instance of <see cref="TogglClientResponse"/> representing the response from the Toggl API.</returns>
 /// <see>
 ///     <cref>https://github.com/toggl/toggl_api_docs/blob/master/chapters/clients.md#create-a-client</cref>
 /// </see>
 public TogglClientResponse CreateClient(TogglCreateClientOptions options)
 {
     return(TogglClientResponse.Parse(Raw.CreateClient(options)));
 }
コード例 #2
0
 /// <summary>
 /// Creates a new client with the specified <paramref name="name"/>.
 /// </summary>
 /// <param name="name">The name of the client.</param>
 /// <param name="workspaceId">The ID of the parent workspace.</param>
 /// <param name="notes">Notes for the client.</param>
 /// <returns>An instance of <see cref="TogglClientResponse"/> representing the response from the Toggl API.</returns>
 /// <see>
 ///     <cref>https://github.com/toggl/toggl_api_docs/blob/master/chapters/clients.md#create-a-client</cref>
 /// </see>
 public TogglClientResponse CreateClient(string name, int workspaceId, string notes)
 {
     return(TogglClientResponse.Parse(Raw.CreateClient(name, workspaceId, notes)));
 }