示例#1
0
        /// <summary>
        /// Returns CompanyResults that contains associated Companies for the request query
        /// </summary>
        /// <returns>List of Companies and associated company ids that you can use.</returns>
        public async Task <Response <CompanyResults> > GetCompaniesAsync()
        {
            var builder = new UriBuilder($"companies");

            return(await Client.GetRequestAsync <CompanyResults>(builder.GetUrl()));
        }
示例#2
0
        /// <summary>
        /// Finding an Company using the Moxi Works platform.
        /// </summary>
        /// <param name="moxiWorksCompanyId">
        /// A valid Moxi Works Company ID. Use Company Endpoint to
        /// determine what MoxiWorksCompanyId you can use.
        /// </param>
        /// <returns>a company or and empty Company object</returns>
        public async Task <Response <Company> > GetCompanyAsync(string moxiWorksCompanyId)
        {
            var builder = new UriBuilder($"/companies/{moxiWorksCompanyId}");

            return(await Client.GetRequestAsync <Company>(builder.GetUrl()));
        }