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
User meeting permission
Tags: meetings
Aug 1, 2022 at 12:35pm   •   2 replies  •  0 likes
Unify Healthcare Services

Hi Everyone,

I am implementing Meeting api in PHP to create meeting link from our software but I am not able to create and facing below issue -


"message" : "In order to call this API endpoint, user needs to have [Meetings] permission (truncated...)


So according to developer's guide there's nothing to do with the user

Also user is also not showing in users list which I created the app


I have followed this developer guide, generate credentials and used in the code - https://developers.ringcentral.com/guide/meetings/quick-start#php


I used below code and entered the values which are mentioned in the json file -

<?php 
require('vendor/autoload.php');
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__ . '/../');
$dotenv->load();




$rcsdk = new RingCentral\SDK\SDK( $_ENV['RC_CLIENT_ID'],
 $_ENV['RC_CLIENT_SECRET'],
 $_ENV['RC_SERVER_URL'] );
$platform = $rcsdk->platform();
$platform->login( $_ENV['RC_USERNAME'],
 $_ENV['RC_EXTENSION'],
 $_ENV['RC_PASSWORD'] );




$params = array(
 'topic' => 'Test Meeting',
 'meetingType' => 'Instant',
 'allowJoinBeforeHost' => true,
 'startHostVideo' => true,
 'startParticipantsVideo' => false
 );
try {
   
   
 $resp = $platform->post('/account/~/extension/~/meeting', $params);
 print_r ('Start Your Meeting: ' . $resp->json()->links->startUri . "\n");
 print_r ('Join the Meeting: ' . $resp->json()->links->joinUri . "\n");
} catch (Exception $e) {
   
   
 print_r ("An error occurred: " . $e->getMessage() . "\n");
}


Also I gave all required permission to App but it says user need permission and response going to catch block


Please assist


Thank you

on Aug 1, 2022 at 2:06pm   •  0 likes

Why everything is underlined? That it makes it so difficult to read. And please post code snippet in code block to make it much easier to read.

on Aug 2, 2022 at 4:09am   •  1 likes

Please check now, I have modified the question

1 Answer
answered on Aug 1, 2022 at 2:12pm  

Can you double check the user who logs in your app, is assigned with a role with these "Meeting" user permission.

screen-shot-2022-08-01-at-21031-pm.png


 0



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