All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ringcentral.paths.restapi.account.extension.companypager.Index Maven / Gradle / Ivy

There is a newer version: 3.2.3
Show newest version
package com.ringcentral.paths.restapi.account.extension.companypager;

import com.ringcentral.RestClient;
import com.ringcentral.definitions.CreateInternalTextMessageRequest;
import com.ringcentral.definitions.GetInternalTextMessageInfoResponse;

public class Index {
    public RestClient rc;
    public com.ringcentral.paths.restapi.account.extension.Index parent;

    public Index(com.ringcentral.paths.restapi.account.extension.Index parent) {
        this.parent = parent;
        this.rc = parent.rc;
    }

    public String path() {
        return parent.path() + "/company-pager";
    }

    /**
     * Creates and sends an internal text message.
     * HTTP Method: post
     * Endpoint: /restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/company-pager
     * Rate Limit Group: Medium
     * App Permission: InternalMessages
     * User Permission: InternalSMS
     */
    public GetInternalTextMessageInfoResponse post(CreateInternalTextMessageRequest createInternalTextMessageRequest) throws com.ringcentral.RestException, java.io.IOException {
        okhttp3.ResponseBody rb = this.rc.post(this.path(), createInternalTextMessageRequest, null);
        return com.ringcentral.Utils.gson.fromJson(rb.string(), GetInternalTextMessageInfoResponse.class);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy