/// <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="IHttpResponse"/> representing the raw 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 IHttpResponse CreateClient(TogglCreateClientOptions options)
 {
     if (options == null)
     {
         throw new ArgumentNullException(nameof(options));
     }
     return(Client.GetResponse(options));
 }
Esempio n. 2
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)));
 }