we have created an application which sends SMS to customer through Rest API (curl) hit.
SMS is Sending Successfully, but the issue is, when any customer reply against any (or specific) Message.
we are not identify the reply of Message.
can we use any event or webhooks? for reply of message, which we have sent to customers and we want to store that reply against
specific message. how we can do this in PHP.
if any body have done such type of work, pleas share your response on it. we don't want to use Message store method or with message Id.
Thanks
Apart from both webhooks (server-side) and pub/sub (client-side) subscriptions, most simple way to receive message content is by RingCentral API :
/restapi/v1.0/account/~/extension/~/message-store/<message id>/content/<attachment id>
Get Message Content API return the sms content in the API which can be consumed directly from PHP, Java or anything. Message store method or with message Id will be the easiest way to get content through API and can be integrated into any script without much effort.
You can also check both webhook and pub/sub examples using the PHP SDK:
Any help would be appreciated!
Scott
curl -sS https://getcomposer.org/installer
Make sure you have the pipe symbol as shown in the read me : https://github.com/ringcentral/ringcentral-php#with-composer-recommended
curl -sS https://getcomposer.org/installer | php
I run php 5.6.3
Thanks for response, i am using below link.
https://github.com/grokify/ringcentral-sdk-php-lite
and how i can use webhooks (server-side) and pub/sub (client-side) subscriptions or set event in such type of code, which contains the link (file sms.php or in
ringcentral-sdk-php-lite/ src/ ringcentrallite.php).
The filter has the following format:
/restapi/v1.0/account/{accountId}/extension/{extensionId}/message-store/instant?type=SMS
The Developer Guide has general information on webhooks (and pub/sub):
http://ringcentral-api-docs.readthedocs.io/en/latest/webhooks/
Some PHP example code for setting up a webhook is available here:
https://github.com/anilkumarbp/ringcentral-demos-webhooks/tree/master/php
A JavaScript example app is also available:
https://github.com/ringcentral-tutorials/webhook-basics-nodejs-demo
More information on this is available on the SMS Instant Message Event filter here:
https://developer.ringcentral.com/api-docs/latest/index.html#!#RefGetInstantMessageEvent
A new Community is coming to RingCentral!
Posts are currently read-only as we transition into our new platform.We thank you for your patience
during this downtime.
Try Workflow Builder
Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!Try RingCentral Workflow Builder