sromocki | 2016-07-20 17:37:41 UTC | #1
Hello,
If I have an existing conversation call between two people, how can I add a new participant to the call with a new phone number? I would assume I would use the POST /api/v2/conversations/calls/{callId}/participants add a new participant API. However, it's not very clear how I can use this API to add a new participant that doesn't have an ID yet. Also, what participant field do I add the new phone number to?
Thanks, Sean
tim.smith | 2016-07-20 18:02:08 UTC | #2
The docs can definitely use some clarification on this. You can add a participant by their phone number with this request body:
{ "participants": [ { "address": "3172222222" } ] }
sromocki | 2016-07-20 22:13:14 UTC | #3
Thanks Tim. A documentation page on how to use the Purecloud API for executing common call controls would definitely be nice to have some day.
chuck.pulfer | 2016-07-20 23:28:17 UTC | #4
Hi Sean,
There is a lab we put together a while back that you might find helpful. It does basic call controls in a javascript web app. You can check it out here: https://github.com/MyPureCloud/api_labs/tree/master/conversations-2
-Chuck
sromocki | 2016-07-21 00:07:04 UTC | #5
Chuck,
Those labs will def help me.
Thanks, Sean
vrvoice1 | 2016-07-21 07:10:00 UTC | #6
Hi Chuck,
this labs are realy nice, but there was a small problem at start time. There is no option to choose the environment. So if I want to use it from EMEA I need to change the url in the purecloud js lib. Can you please add something too choose the environment ?
Regards,
Sven
tim.smith | 2016-07-21 13:26:36 UTC | #7
vrvoice1, post:6, topic:153
There is no option to choose the environment. So if I want to use it from EMEA I need to change the url in the purecloud js lib.Can you please add something too choose the environment ?
This is documented under the Environments section for each SDK: https://developer.mypurecloud.com/api/rest/client-libraries/javascript/latest/
KevinGlinski | 2016-07-21 13:43:35 UTC | #8
I should note that the session contracts changed in v0.50.0 the labs were written before the so here is the readme then on how to update the env
https://github.com/MyPureCloud/purecloud_api_sdk_javascript/blob/847970ae16cc454a6b4afd0d7d1a7b276434c345/README.md
skansakar | 2016-09-14 08:23:30 UTC | #9
@tim.smith @chuck.pulfer I got the lab running but I cannot see how to add participants for conference? What button do I need to press to add participant/conference?
<img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/97e26cb5e8055a0e3d0283e7fd479e50f9a056c5.png" width="690" height="379">
skansakar | 2016-09-15 09:28:10 UTC | #10
Anyone able to help with this? @KevinGlinski
system | 2017-08-28 19:25:24 UTC | #11
This post was migrated from the old Developer Forum.
ref: 153