Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
insim
Advanced tools
npm i insim # Usage ## Sending SMS ```node.js const insim=require('insim'); var api =new insim()
Readme
npm i insim
const insim=require('insim');
var api =new insim()
var data=JSON.stringify({
"header": {
"login": "user@gmail.com",
"accessKey": "xYGt5Dl9wKvz+#RGGU!PjVB+KfiJAYnh%z4&q7oLL3xHRJ1KiN",
"mode": "prod",
"priority": 1
},
"messages": [
{
"phone_number": "+33******",
"message": "Hi Cassandra, can you confirm our appointement?",
"url": "https://www.my-link.com/",
"priorite": 1,
"date_to_send": "2022-10-29 14:12:10"
}
]
})
api.sendSmsApi(data,function(rep){
console.log(rep)
});
[
{
"id_sms_api": "Pf7v16XZ38oT02s",
"sms_per_message": 1,
"user": "user@gmail.com",
"sent_time": "2022-10-29T14:12:53.996Z",
"phone_number": "+336**",
"message": "Hi Cassandra, can you confirm our appointement https://arsms.co/oloe00F6Vvsa \n \nSent for free from PC via arsms.co/free",
"sent": 1
}
]
var contacts=JSON.stringify({
"header": {
"login": "user@gmail.com",
"accessKey": "xYGt5Dl9wKvz+#RGGU!PjVB+KfiJAYnh%z4&q7oLL3xHRJ1KiN",
"api": true
},
"contacts": [
{
"first_name": "Joe",
"last_name": "",
"phone_number": "0654*******", // local format with country code
"country_code": "FR",
"email": ""
},
{
"first_name": "John",
"last_name": "Smith",
"phone_number": "+33621*******", // international format with or without country code
"country_code": "FR",
"email": ""
}
]
});
const insom=require('insim');
var api =new insim();
api.addContactApi(contacts,function(contact){
console.log(contact)
});
Result example:
{
"data":{
"contact":[
{
"phone_number": "+33654XXXXXX", // international format
"first_name": "Doe",
"last_name": "Joe",
"adress": "contact adress"
"email": "contact_email@gmail.com",
"result":"success"
},
{
"phone_number": "+33621XXXXXX", // international format
"first_name": "John",
"last_name": "Smith",
"adress": "contact adress"
"email": "contact_email@gmail.com",
"result":"success"
}
]
}
}
To use urls callbacks in order to get incoming Sms ,Sms delivery status ...You just need to have in your callback url :
var status_message =JSON.parse(req.query.status);
status_message is an object like this:
{
"user":"SENDER_LOGIN",
"phone_number":"RECIPIENT",
"status":"received", // values : "sent" or "received"
"date_status":"2019-08-09T12:50:54.211Z",
"id_sms_api":"YOUR_ID_SMS" // or the one we provide you if empty when sending
}
var message =JSON.parse(req.query.message);
message is an object like this:
{
"title":"incoming sms",
"from":"+1XXXXXXXXXX", // phone number (international format)
"message":"Hello world !",
"date":"2020-01-21 10:01:38"
}
var click =JSON.parse(req.query.click);
click is an object like this:
{
"title":"clicked link",
"phonenumber":"+1XXXXXXXXXX", // phone number (international format)
"link":"https:\/\/www.my-link.com\/",
"date":"2019-07-08 15:07:03",
"id_sms_api":"YOUR_ID_SMS" // or the one we provide you if empty when sending
}
var call =JSON.parse(req.query.call);
call is an object like this:
{
"TITLE":"INCOMING CALL", // or "OUTGOING CALL" or "MISSED"
"PHONE_NUMBER":"+1XXXXXXXXXX",
"CALL_TIME":"2019-07-05",
"DURATION": "15:11:04"
}
var qualification =JSON.parse(req.query.calls);
qualification is an object like this:
{
"title":"Call qualification From Mobile",// or title can be "Call qualification From Interface"
"from":"+1XXXXXXXXXX", // phone number (international format)
"qualification":"Hello world !",
"date":"2020-01-21 10:01:38"
}
FAQs
npm i insim # Usage ## Sending SMS ```node.js const insim=require('insim'); var api =new insim()
The npm package insim receives a total of 0 weekly downloads. As such, insim popularity was classified as not popular.
We found that insim 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.