Es fácil y rápido y recibirás un bono de 5 créditos sin costo.
Allows you to send a single message to one or more recipients or groups (as defined in your phone book).
Note on HTTP connections: please limit yourself to one concurrent connection, i.e., in your code, send with only one thread/process. If you feel that you have latency problems (if your computer is far away from our server in network terms), you could consider using HTTP KeepAlive.
Example (to two UK recipients, text Hi Mom & Dad - note URL-encoding):
http://bulksms.com.es:5567/eapi/submission/send_sms/2/2.0?username=john&password=
abcd1234&message=Hi+Mom+%26+Dad&msisdn=44123123456,44123123457
This example is so simple that it can be pasted into a browser's location bar. However, please do not use HTTP GET in production - use only POST. To ensure that you are using POST correctly, please use the Code Samples as a basis.
(Unable to connect? Experiencing connection timeouts? See the FAQ for port 80 access.)
(Parameter values should in encoded in ISO-8859-1)
Possible values for status_code are:
You should never depend on the value of status_description - only depend on status_code, which is a constant. However, status_description can contain useful information about the nature of failures when you are developing your initial application. batch_id is guaranteed to be a positive integer > 0, if present.
Note: you should attempt to resend if you receive status code 40. You could also do so if you receive 26 or 28, which might have been resolved after several resend attempts. All other errors should be considered fatal.
Any HTTP status code other than 200 should be considered transient, i.e. you should attempt to resend after some interval.
The current url is:
URL: http://bulksms.com.es:5567/eapi/submission/send_sms/2/2.0
Repliability is a feature whereby the originating address (sender id) of a message is set to a number at which we will collect replies on your behalf, and make them available to you. The feature of repliability will not necessarily be possible on your account or for your destination(s). Also be aware that we may not have reply numbers available for your specific country, which means that persons who reply may be exposed to higher costs than those of sending SMSs in their own country, and poorer delivery speed may also result. The repliable parameter is incompatible with the sender parameter. Additionally, this parameter will override any default sender id which you may have set up on your account.
If you specify a date/time in the past, your message will be sent immediately, and a status code of 0 will be returned. If you correctly specify a future date for sending, you will receive a status code of 1. Thereafter, you will not be able to request the status of a scheduled message until after it has actually been sent. The date that you supply must be in the time zone that your account is configured for.
If the destination is a group, the group members will be determined at the time that you submit the message, and not at the time the message is scheduled to be sent.
Please be sure to check our Terms and Conditions for any special conditions that may apply to scheduled messaging, e.g. adjustments that may need to be made for significant price changes where messages are scheduled far into the future.
By submitting a unique id of your own along with every message that you submit, you can safeguard against this. The optional parameter stop_dup_id takes an integer as an argument, in the range 1 to 2147483647. If you submit a message with a stop_dup_id that you have recently (within the past few hours) used in another submission, then that submission will not be processed, and you will receive the response to the original submission, e.g.:
0|IN_PROGRESS|30430
(where 30430 is the batch_id that was generated by the original submission)
In other words, the process is entirely transparent to you, and you will never know whether your submission was processed during the first or the second attempt. Failure statuses are not recorded, so resubmitting a message which failed on its first submission will never result in you receiving a cached result.
stop_dup_id's are shared across send_sms and send_batch, so be sure not use the same id when using both API calls.
If you submit a message longer than 160 characters and have also specified the allow_concat_text_sms flag, if will automatically be split up into parts (of typically 153 characters each, but this figure could be lower to certain networks) and concatenated. These messages will be reconstructed by the recipient mobile, and appear to be a single message. All GSM handsets (except perhaps the very oldest) should support concatenation - it is not a vendor-specific feature, but is specified in GSM standards.
Use the concat_text_sms_max_parts parameter as a safeguard: it is possible that you calculated the length of the SMS differently to how we have, or even that we can't use all 153 characters to a given exceptional network. If our splitting process produces more message parts than this flag specifies, an error will be returned to you.
Concatenation is a route-specific feature. It may not work on most economy routes, and may not work on all premium routes either. It will definitely not work for American networks at present. Currently, concatenation is not supported for Unicode messages. Please test before assuming that concatenation works, for all your target networks.
The optional parameter replace_msg_id (valid range: 1 to 7) can be used to overwrite a previous message on the handset, provided that the previous message was sent with the same replace_msg_id and sender (origin address). This can be useful if you send frequent, related updates to a handset on a single issue, and only want the latest status to appear to the recipient. It also prevents filling up the recipient's Inbox. Use different replace_msg_ids to group related, overwritable issues together.
This feature may not work on all networks and/or routes (and in some cases, may even impede delivery). Also, choosing repliable will typically defeat this mechanism, because sender IDs may differ across messages, so you would typically only use this feature if you have been allocated your own, dedicated sender ID.
For advanced used: the optional parameter protocol_id corresponds to the GSM PDU field TP-PID, and takes a decimal (not hexadecimal) argument. The most common use of the field is for specifying message replacement on the handset (and if that is all you need to do, you can use the shortcut method Overwriting messages on the handset above; note also the warnings in that section). For further uses, see the GSM 03.40 specification.
Documentation for older versions of this API can be found here
Some features depend on how messages are routed, which again depends on certain pricing options which may have been applied to your account. Please contact us to find if such a feature is available to you, if unsure.
If upgrading from v1.x to v2.x, note that the nodup option has been deprecated and will return an error if specified. Also, the batch_id returned by 2.x onwards differs from the message_id returned by previous versions. The change should be transparent to you as long as you make sure that you:
| ChangeLog |
|
26-May-2009
11-Dec-2008
23-May-2008
15-Jun-2007
06-Jun-2007
13-Sep-2006
10-Oct-2005
29-Sep-2005
2-Mar-2005
19-Oct-2004
13-Aug-2004
5-Aug-2004
28-Jul-2004
23-Jul-2004
18-Jun-2004
25-Mar-2004
9-Feb-2004
30-Jan-2004
22-Jan-2004
15-Jan-2004
27-Aug-2003
|