Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unclear tutorial Python SMS #85

Open
LeroyAndrade opened this issue Sep 30, 2022 · 1 comment
Open

Unclear tutorial Python SMS #85

LeroyAndrade opened this issue Sep 30, 2022 · 1 comment

Comments

@LeroyAndrade
Copy link

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
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant