View Sending Surveys via the API for more information. Note:You can also send Link Tracked Surveys out via the API. Note: While both numbers and group_id are optional parameters, one or the other must be included in the request for the message to be sent. Set this field to true to enable test mode, no messages will be sent and your credit balance will be unaffected. eg: Nodemailer for Node.js applications and PHPMailer and SwiftMailer for PHP applications. Depending on the backend programming language, different libraries provide SMTP services. Set this value to true to specify that the message contains links and they should be converted to short links (trackable in messenger), Please note that links must be url encoded before being placed into the message Using SMTP Simple Mail Transfer Protocol (SMTP) is typically associated with sending system-generated emails. See Encoding/Decoding Unicode Documentation Set this value to true to specify that your message body will contain unicode characters. This should be in a Unix timestamp format. If not provided defaults to false.Ĭan be set, up to 72 hours in advance, to say after which time, you don't want the message delivered. Your message will not be sent to numbers within these lists. ![]() This allows you to match delivery receipts to their corresponding messages.Ĭan be set to true in order to check against your own opt-outs list and Textlocal's global opt-outs database. This value will be set against the message batch and will passed back in the delivery receipts. Use this field to specify an alternative URL to which the delivery receipt(s) will be sent. This parameter can be used to specify a schedule date/time for your message, which should be provided in Unix timestamp format. Additionally group 5 contains "contacts" and group 6 contains "opt-outs". This parameter should contain the ID of the relevant group, which can found either within Messenger (in the "Reports" - "Advanced Reports" - "List of Group ID's" section) or by running the get_groups command. This parameter can be used in place of the numbers parameter in order to send to an entire contact group. Maximum of 10,000 numbers and error code 33 will be returned if exceeded. Here) for each application, and limit the usage of them by host IP Address.Ĭomma-delimited list of mobile numbers in international format (i.e. You can create these in your Messenger Control Panel ( click ![]() The message also must be URL Encoded to support symbols like &. Helpful Information for message length details. ![]() For transactional, service implicit/explicit messages, sender name must be 6 alpha characters.For promotional messages, sender name must be 6 numeric characters.Use this field to specify the sender name which is pre-approved by DLT and Textlocal. ?> sendSms($numbers, $message, $sender) Ĭaution: Some users opt to place their request inside a code loop, while testing we highly recommend setting the test parameter to true, as occasionally an infinite loop can occur and users can consume all their credits very quickly. POST GET Class $apiKey, 'numbers' => $numbers, "sender" => $sender, "message" => $message) Ĭurl_setopt($ch, CURLOPT_POSTFIELDS, $data) Ĭurl_setopt($ch, CURLOPT_RETURNTRANSFER, true)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |