Postings notes
Notes in RingCentral give teams the ability to post, collaboritively edit and share simple text files with one another. They provide a perfect way to collect and share meeting agendas and minutes, ideas for an upcoming product, todo lists and action items, and you name it.
Posting a note via the REST API
Select your preferred language below.
const RingCentral = require('@ringcentral/sdk').SDK
RINGCENTRAL_CLIENTID = '<ENTER CLIENT ID>'
RINGCENTRAL_CLIENTSECRET = '<ENTER CLIENT SECRET>'
RINGCENTRAL_SERVER = 'https://platform.devtest.ringcentral.com'
RINGCENTRAL_USERNAME = '<YOUR ACCOUNT PHONE NUMBER>'
RINGCENTRAL_PASSWORD = '<YOUR ACCOUNT PASSWORD>'
RINGCENTRAL_EXTENSION = '<YOUR EXTENSION, PROBABLY "101">'
CHAT_ID = '<GROUP ID>'
var rcsdk = new RingCentral({
server: RINGCENTRAL_SERVER,
clientId: RINGCENTRAL_CLIENTID,
clientSecret: RINGCENTRAL_CLIENTSECRET });
var platform = rcsdk.platform();
platform.login({ username: RINGCENTRAL_USERNAME,
password: RINGCENTRAL_PASSWORD,
extension: RINGCENTRAL_EXTENSION })
platform.on(platform.events.loginSuccess, () => {
post_note( CHAT_ID )
})
async function post_note( group ) {
try {
var resp = await platform.post('/restapi/v1.0/glip/chats/'+group+'/notes', {
"title": "This is a note",
"body": "<strong>heading</strong><br><br>Any HTML can be entered here."
});
var jsonObj = await resp.json()
console.log( JSON.stringify(jsonObj) )
} catch (e) {
console.log(e)
}
}
from ringcentral import SDK
RINGCENTRAL_CLIENTID = '<ENTER CLIENT ID>'
RINGCENTRAL_CLIENTSECRET = '<ENTER CLIENT SECRET>'
RINGCENTRAL_SERVER = 'https://platform.devtest.ringcentral.com'
RINGCENTRAL_USERNAME = '<YOUR ACCOUNT PHONE NUMBER>'
RINGCENTRAL_PASSWORD = '<YOUR ACCOUNT PASSWORD>'
RINGCENTRAL_EXTENSION = '<YOUR EXTENSION, PROBABLY "101">'
CHAT_ID = '<GROUP ID>'
rcsdk = SDK( RINGCENTRAL_CLIENTID,
RINGCENTRAL_CLIENTSECRET,
RINGCENTRAL_SERVER)
platform = rcsdk.platform()
platform.login(RINGCENTRAL_USERNAME,
RINGCENTRAL_EXTENSION,
RINGCENTRAL_PASSWORD)
endpoint = "/restapi/v1.0/glip/chats/" + CHAT_ID + '/notes'
note = {
"title": "This is a note",
"body": "<strong>heading</strong><br><br>Any HTML can be entered here."
}
resp = platform.post(endpoint, note)
print(resp.text())
<?php
require(__DIR__ . 'vendor/autoload.php');
$RINGCENTRAL_CLIENTID = '<ENTER CLIENT ID>';
$RINGCENTRAL_CLIENTSECRET = '<ENTER CLIENT SECRET>';
$RINGCENTRAL_SERVER = 'https://platform.devtest.ringcentral.com';
$RINGCENTRAL_USERNAME = '<YOUR ACCOUNT PHONE NUMBER>';
$RINGCENTRAL_PASSWORD = '<YOUR ACCOUNT PASSWORD>';
$RINGCENTRAL_EXTENSION = '<YOUR EXTENSION, PROBABLY "101">';
$CHAT_ID = '<GROUP ID>';
$rcsdk = new RingCentral\SDK\SDK($RINGCENTRAL_CLIENTID,
$RINGCENTRAL_CLIENTSECRET,
$RINGCENTRAL_SERVER);
$platform = $rcsdk->platform();
$platform->login($RINGCENTRAL_USERNAME,
$RINGCENTRAL_EXTENSION,
$RINGCENTRAL_PASSWORD);
$endpoint = "/restapi/v1.0/glip/chats/"+CHAT_ID+"/notes";
$params = array(
"title" => "This is a note",
"body" => "<strong>heading</strong><br><br>Any HTML can be entered here."
);
$resp = $platform->post($endpoint, $params);
print($resp->text());
?>
require 'ringcentral'
RINGCENTRAL_CLIENTID = '<ENTER CLIENT ID>'
RINGCENTRAL_CLIENTSECRET = '<ENTER CLIENT SECRET>'
RINGCENTRAL_SERVER = 'https://platform.devtest.ringcentral.com'
RINGCENTRAL_USERNAME = '<YOUR ACCOUNT PHONE NUMBER>'
RINGCENTRAL_PASSWORD = '<YOUR ACCOUNT PASSWORD>'
RINGCENTRAL_EXTENSION = '<YOUR EXTENSION, PROBABLY "101">'
CHAT_ID = '<GROUP ID>'
rc = RingCentral.new(RINGCENTRAL_CLIENTID,
RINGCENTRAL_CLIENTSECRET,
RINGCENTRAL_SERVER)
rc.authorize(username: RINGCENTRAL_USERNAME,
extension: RINGCENTRAL_EXTENSION,
password: RINGCENTRAL_PASSWORD)
resp = rc.post('/restapi/v1.0/glip/chats/'+CHAT_ID+'/notes', payload: {
"title": "This is a note",
"body": "<strong>heading</strong><br><br>Any HTML can be entered here."
})
puts resp.body
Notes Schema
Please consult our API Reference for creating a note to learn more about the request and response schemas.
Publishing your draft notes
Upon creating a note, the status of the note defaults to "Draft." Therefore, if you intend to make the note immediately available to members of the chat, you will need to subseuently call the publish note API reference.
Keep learning
Using the Notes API you can accomplish a number of tasks relating to the creation, and sharing of notes.
- Listing notes in a chat
- Update and delete notes
- Lock and unlock notes
- Publish notes