Beispiel #1
0
        /// <summary>
        ///     Creates a custom company greeting.
        ///     HTTP Method: post
        ///     Endpoint: /restapi/{apiVersion}/account/{accountId}/greeting
        ///     Rate Limit Group: Medium
        ///     App Permission: EditAccounts
        ///     User Permission: ReadUserInfo
        /// </summary>
        public async Task <CustomCompanyGreetingInfo> Post(CreateCompanyGreetingRequest createCompanyGreetingRequest,
                                                           RestRequestConfig restRequestConfig = null)
        {
            var multipartFormDataContent = Utils.GetMultipartFormDataContent(createCompanyGreetingRequest);

            return(await rc.Post <CustomCompanyGreetingInfo>(Path(), multipartFormDataContent, null, restRequestConfig));
        }
Beispiel #2
0
        /// <summary>
        /// Operation: Create Custom Company Greeting
        /// Http Post /restapi/v1.0/account/{accountId}/greeting
        /// </summary>
        public async Task <RingCentral.CustomCompanyGreetingInfo> Post(
            CreateCompanyGreetingRequest createCompanyGreetingRequest)
        {
            var multipartFormDataContent = Utils.GetMultipartFormDataContent(createCompanyGreetingRequest);

            return(await rc.Post <RingCentral.CustomCompanyGreetingInfo>(this.Path(), multipartFormDataContent));
        }
Beispiel #3
0
        /// <summary>
        /// Operation: Create Company Greeting
        /// HTTP Method: POST
        /// Endpoint: /restapi/v1.0/account/{accountId}/greeting
        /// Rate Limit Group: Medium
        /// App Permission: EditAccounts
        /// User Permission: ReadUserInfo
        /// </summary>
        public async Task <RingCentral.CustomCompanyGreetingInfo> Post(
            CreateCompanyGreetingRequest createCompanyGreetingRequest, CancellationToken?cancellationToken = null)
        {
            var multipartFormDataContent = Utils.GetMultipartFormDataContent(createCompanyGreetingRequest);

            return(await rc.Post <RingCentral.CustomCompanyGreetingInfo>(this.Path(), multipartFormDataContent, null,
                                                                         cancellationToken));
        }