News for hackers. Stuff that matters.
Re:Show HN: A tool to send push notifications to your phone,... by rsync on Tuesday December 28, 2021 @09:04PM (#29720884)
"Edit: isn’t this super costly for personal use?"

Not really ... I notice twilio deducting USD $9 every 10 or 12 days ? It's a business expense.

I also 'lookup' numbers to check if they are mobile or not:

  curl -s -X GET "https://lookups.twilio.com/v1/PhoneNumbers/$number?Type=carrier&Type=caller-name" -u $accountsid:$authtoken | /usr/local/bin/jq '.'
... which is handy. Usually shows their name and carrier ID as well.

As you can see, I pipe it through 'jq' because that's what all the cool kids do.

Re:Show HN: A tool to send push notifications to your phone,... by scgtrp on Wednesday December 29, 2021 @04:32AM (#29723279)
If (you're into microoptimizing things and) all you care about is whether they're mobile, you can leave out `Type=caller-name` to save a whole one cent per lookup :)

And if you're doing this before you try to SMS them, you can skip the lookup entirely, if it's a landline you'll just get an error back.

(I work at a company that uses Twilio heavily and it's full of this sort of microoptimization)

Re:Show HN: A tool to send push notifications to your phone,... by sgarland on Thursday December 30, 2021 @10:49AM (#29737687)
How is `/usr/local/bin` not in your PATH?
Re:Show HN: A tool to send push notifications to your phone,... by binwiederhier on Thursday December 30, 2021 @06:11PM (#29742679)
Maybe it's a custom jq version?