You are getting what is known as the:
contentId
the video mail itself is identified by the:
messageId
To get the messageId you will need to use the following function which is in the TokBoxApi class:
getMessagesWithContent($contentId)
We currently don't have a wrapper for that function which parses the XML and returns the message ID cleanly, but there are good examples in the TokBoxCall.php file about how to do this. You will want to use simplexml to grab the messageId field of the response to the aforementioned function call, and then pass that into your generateRecorderEmbed(...) function.
I hope that this makes sense. Please let me know if you need some more help with the XML parsing.
--
Melih O.
me...@tokbox.com
> --
> You received this message because you are subscribed to the Google Groups "CallWidget-Developers" group.
> To post to this group, send email to tokbox-d...@googlegroups.com.
> To unsubscribe from this group, send email to tokbox-develop...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/tokbox-developers?hl=en.
>
The API call has been changed to require_guest from require_user. This should resolve the need that was originally in place for a registered user and their credentials. I have pushed
this code to the Sandbox environment, and I'll notify the list when it goes into production.
Best.
--
Melih O.
me...@tokbox.com
Could you please test against the Sandbox environment, and then let me know that it's working as you expect?
Thanks.
--
Melih O.
me...@tokbox.com
You aren't creating a guest user and signing as your guest user. Try to instead do the following:
$apiObj = TokBoxUser::createGuest();
$result = $apiObj->getMessagesWithContent("3c7w6a941270");
print_r($result);
with the appropriate includes and the like. I think this will resolve the issue you're facing with the response.
--
Melih O.
me...@tokbox.com
That's really great! Any chance you could share the parsing code back into the SDK for the community at large? I'll throw in a TokBox tshirt if that sweetens the deal!
Best,
Melih O.
me...@tokbox.com
Sent from my iPhone
Could you send me your shirt size and mailing address off-list, and we'll get you a t-shirt?
Thanks again.