ApiRTC / ApiRTC-examples

Various examples of how to use ApiRTC Js
https://apirtc.github.io/ApiRTC-examples/
20 stars 35 forks source link

createPrivateConference() - Could not create conference Error: cloudRequest - response status Code: 403 #8

Open lkoczorowski opened 1 year ago

lkoczorowski commented 1 year ago

File:line : ./ApiRTC-examples/conferencing_moderation/js/conference_moderation.js:171

Relevant Snippet: var enterprise = ua.getEnterprise(); enterprise.createPrivateConference() // breaking code

API Endpoint POST https://cloud.apizee.com/api/v2/conferences returns a 403. API Response: { message: "user is not allowed to create conferences" }

Tried every user in my company and none of them work. Any idea how to fix this? Don't see any option to make someone a moderator. It was my impression that all users were moderators.

rvailleux commented 1 year ago

Hi @lkoczorowski, I ll investigate this and get back to you. cheers

rvailleux commented 1 year ago

Hi @lkoczorowski,

Thanks for reaching out to us.

Creation of a "conference" requires the user:

graph TD
    Start[index.html] --> |cloud.apizee.com account Username and password| Moderator[Ready to start a conference]
    Moderator -->  |Randomize a CONFERENCE_NAME| CreateConf[Create a Conference] --> ModeratorJoined[The Moderator joined the conference]
    Start --> |guest display name and SERVICE Apikey| GuestReady[Ready to join a conference]
    GuestReady --> |CONFERENCE_NAME| GuestWait[Guest joined the waiting room]
    ModeratorJoined --> ModeratorSignaled{Moderator receive event}
    ModeratorSignaled --> |Accept| ModeratorGuest[Moderator and guest streams flow]
    ModeratorSignaled --> |Decline| GuestLeave[Guest Leave the Conference]
    GuestWait --> ModeratorSignaled
    ModeratorGuest --> |Moderator Eject Guest| GuestLeave[Guest is out of the conference]
    ModeratorGuest --> |Guest Leave| GuestLeave[Guest is out of the conference]
    ModeratorGuest --> |Moderator Leave| ModeratorLeave[Moderator is out of the conference]

Notes:

I ll make the example code more clear on this point. Thanks for raising that point.

lkoczorowski commented 1 year ago

Thanks for the info @rvailleux!

I'm having trouble finding "Izeeconf". When I visit my subscriptions page all I have is "ApiRTC"

When I click on "Change Subscription" I see Starter / Developer / Developer+ / Premium.

I should note, I'm only on the Starter product, I'm currently evaluating different webRTC PaaS and moderation is a key requirement for us.

Thanks!

rvailleux commented 1 year ago

Hi @lkoczorowski

Use an account on cloud.apizee.com instead of cloud.apirtc.com and you should see the options.

++