From cce2a086175c46218763ff39f04fc4ea9b2c38e4 Mon Sep 17 00:00:00 2001 From: Benjamin Dean Date: Sat, 30 Jan 2016 11:51:18 -0800 Subject: [PATCH 1/2] Include example of simplified tilde syntax --- source/index.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/index.md b/source/index.md index a8310b0c795..e90419d379a 100644 --- a/source/index.md +++ b/source/index.md @@ -103,6 +103,9 @@ To access a Call Log resource you will require this URI: Send the request having specified particular accountId and extensionId or using simplified syntax with tilde characters. Please note, that if dateFrom parameter is not specified, server will return records for last week only. +**Example URI using simplified tilde syntax** +`GET /restapi/v1.0/account/~/extension/~/call-log` + ## Retrieve Filtered Call Logs ~~~ http @@ -243,6 +246,9 @@ If you need to send a text message to somebody, you should use this URI: Send `POST` request: Specify `accountId` and `extensionId` in the request URL or use simplified syntax with tilde characters. Specify the recipient phone number in the `to` field and one of your valid RingCentral phone numbers in the `from` field. Enter your message in the `text` field. +**Example URI using simplified tilde syntax** +`POST /restapi/v1.0/account/~/extension/~/sms` + ## Send Pager Message ~~~ http From 68a7edc6e365a306addfcfa3c802bc9e3935e87e Mon Sep 17 00:00:00 2001 From: Benjamin Dean Date: Thu, 4 Feb 2016 12:19:07 -0800 Subject: [PATCH 2/2] Fix per PR comments --- source/index.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/index.md b/source/index.md index e90419d379a..d76b93bbda8 100644 --- a/source/index.md +++ b/source/index.md @@ -101,11 +101,13 @@ To access a Call Log resource you will require this URI: `GET /restapi/v1.0/account/{accountId}/extension/{extensionId}/call-log` -Send the request having specified particular accountId and extensionId or using simplified syntax with tilde characters. Please note, that if dateFrom parameter is not specified, server will return records for last week only. +Send the request having specified particular accountId and extensionId or using simplified syntax with tilde characters. **Example URI using simplified tilde syntax** `GET /restapi/v1.0/account/~/extension/~/call-log` +Please note, that if dateFrom parameter is not specified, server will return records for last week only. + ## Retrieve Filtered Call Logs ~~~ http @@ -244,11 +246,13 @@ If you need to send a text message to somebody, you should use this URI: `POST /restapi/v1.0/account/{accountId}/extension/{extensionId}/sms` -Send `POST` request: Specify `accountId` and `extensionId` in the request URL or use simplified syntax with tilde characters. Specify the recipient phone number in the `to` field and one of your valid RingCentral phone numbers in the `from` field. Enter your message in the `text` field. +Send `POST` request: Specify `accountId` and `extensionId` in the request URL or use simplified syntax with tilde characters. **Example URI using simplified tilde syntax** `POST /restapi/v1.0/account/~/extension/~/sms` +Specify the recipient phone number in the `to` field and one of your valid RingCentral phone numbers in the `from` field. Enter your message in the `text` field. + ## Send Pager Message ~~~ http