This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

SMS - Twilio
#9
(02.08.2022, 10:37)admin Wrote: As I've said - check what you get in logs. Do you get 3 log entries for each script call?

My mistake I thought that  I wrote  the log in the last  reply 
This is the log 
Code:
* arg: 1
  * string: {"sid": "SMe1cacb01d1aa4fcea936f4d327e76665", "date_created": "Tue, 02 Aug 2022 10:41:58 +0000", "date_updated": "Tue, 02 Aug 2022 10:41:58 +0000", "date_sent": null, "account_sid": "AC202051b89229eb902d1f8c9807535086", "to": "+4741249991", "from": "+13253264263", "messaging_service_sid": null, "body": "Sent from your Twilio trial account - Alarm HCWC 009 changed to Alarm ON", "status": "queued", "num_segments": "1", "num_media": "0", "direction": "outbound-api", "api_version": "2010-04-01", "price": null, "price_unit": "USD", "error_code": null, "error_message": null, "uri": "/2010-04-01/Accounts/AC202051b89229eb902d1f8c9807535086/Messages/SMe1cacb01d1aa4fcea936f4d327e76665.json", "subresource_uris": {"media": "/2010-04-01/Accounts/AC202051b89229eb902d1f8c9807535086/Messages/SMe1cacb01d1aa4fcea936f4d327e76665/Media.json"}}
* arg: 2
  * number: 201
* arg: 3
  * table:
   ["x-powered-by"]
    * string: AT-5000
   ["twilio-request-duration"]
    * string: 0.119
   ["strict-transport-security"]
    * string: max-age=31536000
   ["access-control-allow-headers"]
    * string: Accept, Authorization, Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since
   ["twilio-request-id"]
    * string: RQ947f026c47551c93614e38b920f3c517
   ["x-api-domain"]
    * string: api.twilio.com
   ["twilio-concurrent-requests"]
    * string: 1
   ["access-control-expose-headers"]
    * string: ETag
   ["content-type"]
    * string: application/json
   ["connection"]
    * string: close
   ["content-length"]
    * string: 835
   ["x-shenanigans"]
    * string: none
   ["access-control-allow-origin"]
    * string: *
   ["date"]
    * string: Tue, 02 Aug 2022 10:41:58 GMT
   ["access-control-allow-methods"]
    * string: GET, POST, DELETE, OPTIONS
   ["access-control-allow-credentials"]
    * string: true
   ["x-home-region"]
    * string: us1

As I told you the 3 numbers are the same (till now I will change it the I update the account), I can send the message 3 times if  copy and past  the code in below 3 times with the same number  but it didn't work with the loop for  

from_nr = '+13253264263' -- put sender SIM nr here
to_nr = '' -- put recepient SIM nr here
id_nr = '' -- put your ID here
token_nr = '' -- put your token here
sms(id_nr, token_nr, from_nr, to_nr, 'Alarm HCWC 009 changed to Alarm OFF')
Reply


Messages In This Thread
SMS - Twilio - by Fahd - 02.08.2022, 06:24
RE: SMS - Twilio - by admin - 02.08.2022, 07:47
RE: SMS - Twilio - by Fahd - 02.08.2022, 08:23
RE: SMS - Twilio - by admin - 02.08.2022, 08:41
RE: SMS - Twilio - by Fahd - 02.08.2022, 09:53
RE: SMS - Twilio - by admin - 02.08.2022, 09:57
RE: SMS - Twilio - by Fahd - 02.08.2022, 10:18
RE: SMS - Twilio - by admin - 02.08.2022, 10:37
RE: SMS - Twilio - by Fahd - 02.08.2022, 10:54
RE: SMS - Twilio - by admin - 02.08.2022, 11:38
RE: SMS - Twilio - by Fahd - 02.08.2022, 11:46
RE: SMS - Twilio - by admin - 02.08.2022, 12:05
RE: SMS - Twilio - by Fahd - 02.08.2022, 12:23

Forum Jump: