
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
This library supports the following Python implementations:
pip install textflowsms
To send an SMS, you have to create an API key using the Textflow dashboard. When you register an account, you automatically get an API key with one free SMS which you can send anywhere.
import textflowsms as tf
tf.useKey("YOUR_API_KEY");
tf.sendSMS("+381611231234", "Dummy message text...")
result = tf.sendSMS("+381611231234", "Dummy message text...")
if(result.ok):
print(result.data)
else:
print(result.message)
{
"ok": true,
"status": 200,
"message": "Message sent successfully",
"data": {
"to": "+381611231234",
"content": "Dummy message text...",
"country_code": "RS",
"price": 0.05,
"timestamp": 1674759108881
}
}
{
"ok": false,
"status": 404,
"message": "API key not found"
}
You can also use our service to easily verify a phone number, without storing data about the phones that you are about to verify, because we can do it for you.
# User has sent his phone number for verification
resultSMS = tf.sendVerificationSMS ("+11234567890", service_name, seconds);
# Show him the code submission form
# We will handle the verification code ourselves
# The user has submitted the code
resultCode = tf.VerifyCode("+11234567890", user_entered_code);
# if `resultCode.valid` is True, then the phone number is verified.
service_name
is what the user will see in the verification message, e. g. "Your verification code for Guest is: CODE"
seconds
is how many seconds the code is valid. Default is 10 minutes. Maximum is one day.
If you need help installing or using the library, please check the FAQ first, and contact us at support@textflow.me if you don't find an answer to your question.
If you've found a bug in the API, package or would like new features added, you are also free to contact us!
FAQs
Python library that helps you send SMS using TextFlow API
We found that textflowsms demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.