News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
WEBHOOOK PHP - subscription expiration, add more phone number and callee name.
Tags: webhooks
Feb 15, 2022 at 12:59pm   •   1 replies  •  0 likes
sneha-rao

I have followed https://github.com/tylerlong/ringcentral-php-webhook-demo
I have developer sandbox account. I have created webhook subscription for incoming missed calls using webhook notification quick app. I am able to create subscription and webhook works fine.

Right now i am facing 3 issues

1) I want to check subscription expiration.

$r = $platform->get("/restapi/v1.0/subscription/b8f94697-a98b-40b0-837b-f84d52052047");
print_R($r);
with above code, i can see other information except expiry.


2) I want to add more number. But in Account Admin Portal 'https://service.devtest.ringcentral.com/application/company/phoneNumbers/allNumbers?AddNumbers=SelectNumbers' i can add but it ask for payment. Am i doing right? or is there any other way to add phone number ?

3) i don't get any callee name information.
as $jsonBody['body']['parties']['0']['from'] there is only phonenumber attribute available.

1 Answer
answered on Feb 15, 2022 at 1:46pm  

1) See the response of that endpoint from here. It does give you the status as Active, Suspended or Blacklisted. You won't see the expiration time left though.

2) You can add up to 4 phone numbers for your sandbox account. The price showed in the form for a sandbox account while adding a number is just an example. You will not pay for that. You will not be asked for any payment method or CC info.

3) If you add contacts to your account, you will see the name as you provide in the contact for that phone number.


 0
on Feb 18, 2022 at 2:31pm   •  0 likes

Perfect! You saved my day. Thanks for taking the time to respond.



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

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us