Esempio n. 1
0
        /// <summary>
        ///     List all projects with pagination.
        /// </summary>
        /// <param name="parameters">
        ///     The parameters is the Dictionary object which contains the filters in the form of key, value pair to refine the
        ///     list.<br></br>The possible filters are listed below<br></br>
        ///     <table>
        ///         <tr>
        ///             <td>filter_by</td>
        ///             <td>
        ///                 Filter projects by any status<br></br>Allowed Values: <i>Status.All, Status.Active</i> and
        ///                 <i>Status.Inactive</i>
        ///             </td>
        ///         </tr>
        ///         <tr>
        ///             <td>customer_id</td><td>Search projects by customer id.</td>
        ///         </tr>
        ///         <tr>
        ///             <td>sort_column</td>
        ///             <td>
        ///                 Sort projects<br></br>Allowed Values: <i>project_name, customer_name, rate</i> and <i>created_time</i>
        ///             </td>
        ///         </tr>
        ///     </table>
        /// </param>
        /// <returns>ProjectsList object.</returns>
        public ProjectsList GetProjects(Dictionary <object, object> parameters)
        {
            var url      = baseAddress;
            var responce = ZohoHttpClient.get(url, getQueryParameters(parameters));

            return(ProjectParser.getProjectsList(responce));
        }