Re: [CallWidget-Developers] Python Error

1 view
Skip to first unread message
Message has been deleted

Melih Onvural

unread,
Feb 5, 2011, 10:41:20 PM2/5/11
to tokbox-d...@googlegroups.com
Mike,

Could you let me know which version of the Python SDK you've downloaded? Also, I think you have to instantiate an instance of the TokBoxAPI class
before you call the createCall method.

I think it would be something along the lines of:

tokbox = TokBoxAPI(partnerkey, partnersecret)
createCallXML = tokbox.createCall('A Guest', jabberId, ...)

--
Melih O.
me...@tokbox.com


On Feb 4, 2011, at 7:05 PM, MikeK wrote:

> Just getting started. I put in this code after importing into the
> tokbox variable:
>
> jabberid = 'guest_3977_4a8cff4cbc01_1258079529@jabber-
> guest.dev.tokbox.com'
>
> tokbox.createCall(jabberid,True)
>
> and got this error:
> "TypeError: unbound method createCall() must be called with TokBoxAPI
> instance as first argument (got str instance instead)"
>
>
> What is the tokboxAPI instance. Thanks
>
> --
> 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.
>

m.k...@gmail.com

unread,
Feb 5, 2011, 11:00:53 PM2/5/11
to tokbox-d...@googlegroups.com
I was able to get the code below to work since I sent this email.  I am now getting 500 server error that you addressed in the last email.  I will try your suggestions of getting a new sandbox key.

m.k...@gmail.com

unread,
Feb 5, 2011, 11:16:13 PM2/5/11
to tokbox-d...@googlegroups.com
Just got a new key and now am getting a new error which I guess i progress : )
 python code:
>>> apiObj=tokbox('1111','abcabcabcabcabcabcabcabcabc')
>>> callid = tokbox.createCall(apiObj, True)

It returns the following error:
ExpatError: not well-formed (invalid token): line 6, column 107

Melih Onvural

unread,
Feb 5, 2011, 11:27:10 PM2/5/11
to tokbox-d...@googlegroups.com
For some reason, the response XML is bad. Could you send me your code off-list so I can inspect what's going on?

Thanks.
--
Melih O.
me...@tokbox.com

Reply all
Reply to author
Forward
0 new messages