/// <summary> /// Creates a new project 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> public IHttpResponse CreateProject(TogglCreateProjectsOptions options) { if (options == null) { throw new ArgumentNullException(nameof(options)); } return(Client.GetResponse(options)); }
/// <summary> /// Creates a new project 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="TogglProjectResponse"/> representing the response from the Toggl API.</returns> public TogglProjectResponse CreateProject(TogglCreateProjectsOptions options) { return(TogglProjectResponse.Parse(Raw.CreateProject(options))); }