Hacker News new | past | comments | ask | show | jobs | submit login

Yea, I tried to use SNS today but couldn't find any example code for Python. I got frustrated and signed up with twilio. After signing up and doing their test I was able to click directly to the Python example.



1. I love Twilio and I recommend it over pinpoint most of the time. The API is objectively easier and the documentation is better.

2.

    import boto3
    sns = boto3.client('sns')
    number = '+12345678900'
    sns.publish(PhoneNumber=number, Message='Hello, World')
Disclaimer: I work for AWS and wrote the post


OT: why on Earth would you call your library boto3, instead of something obvious, like aws?

I can't be the first person who was confused by this.



Here's the right twitter link sorry: https://twitter.com/garnaat/status/913093232917086209


I admit I don't use SNS but the boto3 docs are usually really well documented.


the integration between the python code and SNS is relatively well documented, but it is missing examples for how to actually achieve real-world results (such as sending yourself a text message).


Responding to this and the parent it was the lack of examples that made me change my behavior. Not the lack of documentation for boto3.




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: