Skip to main content
Solved

Unable to send MMS in Python

  • January 21, 2020
  • 2 replies
  • 449 views

So I can send SMS just fine when I try to send MMS i get an parameter [] is invalid exception

where _img is a link to an img file. Can't seem to find any documentation on this at all...

params = {'from': {'phoneNumber' : number}, 'to':[{'phoneNumber' : toNumber }], 'text' : message}, _img
resp = platform.post('/restapi/v1.0/account/~/extension/~/sms', params)

Best answer by PhongVu

Even your snippet code is broken so I don't know what is the exact parameter syntax do you use.

Anyway, here is the sample code for sending MMS using Python.

View original
Did this thread help you find an answer to your question?

2 replies

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • 2331 replies
  • Answer
  • January 21, 2020

Even your snippet code is broken so I don't know what is the exact parameter syntax do you use.

Anyway, here is the sample code for sending MMS using Python.


  • Author
  • New Participant
  • 3 replies
  • January 21, 2020

Anyway, I tried your code, I get 'attachement is not defined at builder.add(attachment)?


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings