python-rest-api icon indicating copy to clipboard operation
python-rest-api copied to clipboard

Unclear tutorial Python SMS

Open LeroyAndrade opened this issue 3 years ago • 1 comments

Dear reader,

I'm trying to implement your awesome SMS API into my Python final assignmetn (for higher education semester 1). The deadline is two weeks from now and I've been busy for 2 weeks..

The following guide: https://developers.messagebird.com/quickstarts/sms/send-sms-python

  • pip install messagebird was succesfull But after that you ask to place an recipient and originator.

By copy/pasting your tutorial code and insert my own phone number, I still don't get the program to run. I've managed to do it in Node.JS and those instructions were clear. I ask if you please create the SMS feature locally in Python by following exactly the tutorial please.

Does that work for you then? I have tried your template and then tried editing to: import messagebird

client = messagebird.Client('ypt3ryCKm0WnfppAQt3hcd0Yt') message = client.message_create( '+31610433256', {'originator': '+31610433256'}, {'recepient': '+31610433256'}, 'Hello World, mijn eerste SMS', { 'reference' : 'Foobar' } )

But I receive in both cases: code: send_sms.py : The term 'send_sms.py' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

  • send_sms.py
  • CategoryInfo : ObjectNotFound: (send_sms.py:String) [], CommandNotFoundException
  • FullyQualifiedErrorId : CommandNotFoundException

Can you please help me? Kind regards, Leroy Andrade

LeroyAndrade avatar Sep 30 '22 12:09 LeroyAndrade

Sir, thank you for picking this ticket up

But, if you follow the MessageBird Python tutorial, does it work for you? To send an SMS?

If yes, could you please copy paste that template here, if not, then there obviously there's something wrong.

NodjeJS tutorial wasn't a problem but your Python program doesn't work when using the tutorial.

Can you please investigate and resolve?

LeroyAndrade avatar Oct 05 '22 07:10 LeroyAndrade