question

$$ANON_USER$$ avatar image
$$ANON_USER$$ asked

Issues while trying to ..Twexit

Hello guys,

I did not see any topic about twexit here, so here I am.

My issue is aparently basic but take look please, when Im trying to migrate my code from twilio to telnyx Im facing the following issue:

this line from twilio.rest import Client as __twilio_client

Is the problem due to I dont know which is the equivalent for telnyx. And this is creating the following error !

ImportError: cannot import name 'Client' from 'telnyx' (/home/xxxx/.local/lib/python3.10/site-packages/telnyx/init.py)

and also this other

NameError: name '__telnyx_client' is not defined

Would you be so kind to help me with this ? Thanks in advace.

=D

messaging
10 |600

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

·
vishal avatar image
vishal answered

Hello,

We know how important it is for you to get the code working when migrating to Telnyx. Sorry to hear that you are having issues with it.

We have created a twexit-python-demo repo to demonstrate its usage. Please check this repo and the following file that shows the usage of twilio.rest which could probably resolve the issue.

https://github.com/team-telnyx/twexit-python-demo/blob/master/send_message.py

Please try and let us know in case of any issues.

10 |600

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Manage Your Content