To get your API ID (which is not a activation code), You need to login into
Members area on Clickatell website with username, client ID and password.
Under "API" tab click link "add sub-products" and give it some name in first
input box (exam: "myapi"). Optionally You can set IP Lock Down, Dial Prefix
and Callback Url. Press "Submit" button.
Now You will get a list box with name "myapi" under yellow submenu. Finally,
click on "control" link to get Yours API - ID (2xxxxx format).
As You can see, You can create different products with different settings
and each will have unique API ID.
I hope that this will help.
Best regards,
Aleksandar Markovic
NETSECTOR
Kragujevac, Srbija
www.netsector.net
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
thanks for that Alek
THe next problem is - what is my client code - I was only requested for
username and password?
It looks like a good service - I want to build in an SMS alert on my
webbased telephone messaging system to alert someone they have a new message
to deal with.
Thanks for your help
Regards
Tony
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
CHICKATELL offer 10 free SMS message, but to get more and to be a valid
member You need to purchase some SMS credits.
When you become a valid user you will get Your CLIENT ID. That is the point.
One SMS cost ~0.04Euro (not to expensive).
We use this service on our web site for "Web Hosting Registration" alerts.
If You need more help, contact me again... ;)
Regards
Aleksandar
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey, just trying to set up the php script - looks good, but as im a complete amateur when it comes to this kinda thing, ive become stuck...
i'm getting this error when running the example script:
Error while executing fopen sending method!
Please check does PHP have OpenSSL support and check does PHP version is greater than 4.3.0.
I've checked that the php version is ok (its 4.3.10) and openssl is enabled
I've also declared my api_id, user and password
i noticed there's a base_s, but am not sure what this is doing?
Any help or suggestions on how to just send a message to a no would be great.
I've literally just dumped the example into sms.php:
<?php
require_once ("sms_api.php");
$mysms = new sms();
echo $mysms->session;
echo $mysms->getbalance();
#$mysms->send ("07743445745", "netsector", "TEST MESSAGE");
?>
is this correct? is that first entry the no?
thanks,
bob
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hello all
I did run the code, the output was:
Error while executing fopen sending method!
Please check does PHP have OpenSSL support and check does PHP version is greater than 4.3.0.
can you tell me how to find $curl_proxy;
$curl_proxy = "http://127.0.0.1:8080";
thanx
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
To Mohsin (mahaidery): That error appears when you send an SMS to a phone number that Clickatell can't accept (typically, you might have forgotten to add the international prefix to it), or possibly because your SMS was "special" and no gateway was found by Clickatell to deliver it. Typical cases of "special" SMS are SMS with accented characters or using a character set that is not plain ASCII, or even trying WAP, sending ringtones, etc. You can see for your country what delivery methods are available (it's listed on Clickatell's website).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
To fadi jaatheen (fjaatheen): Try using "curl" to send messages instead of fopen; many hosting providers block access to fopen. See this thread for some alternatives. Also, the error indicates that you might have a way too old PHP installation (or no SSL support). It's time to do an upgrade :)
As for figuring out your proxy address, that's something only you (or your network admin) can know :) If you don't have any proxy on your network, just leave that entry blank and don't use it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi miki
I downloaded your SMS script - looks good - I registered with clickatel and
got an activation code - is that my api_id?
It isnt accepted anyway. Any clues?
thanks mate -
Regards
Tony Ayling
Brisbane Australia
Hello Tony,
thanks for reply.
To get your API ID (which is not a activation code), You need to login into
Members area on Clickatell website with username, client ID and password.
Under "API" tab click link "add sub-products" and give it some name in first
input box (exam: "myapi"). Optionally You can set IP Lock Down, Dial Prefix
and Callback Url. Press "Submit" button.
Now You will get a list box with name "myapi" under yellow submenu. Finally,
click on "control" link to get Yours API - ID (2xxxxx format).
As You can see, You can create different products with different settings
and each will have unique API ID.
I hope that this will help.
Best regards,
Aleksandar Markovic
NETSECTOR
Kragujevac, Srbija
www.netsector.net
thanks for that Alek
THe next problem is - what is my client code - I was only requested for
username and password?
It looks like a good service - I want to build in an SMS alert on my
webbased telephone messaging system to alert someone they have a new message
to deal with.
Thanks for your help
Regards
Tony
Hello again :)
CHICKATELL offer 10 free SMS message, but to get more and to be a valid
member You need to purchase some SMS credits.
When you become a valid user you will get Your CLIENT ID. That is the point.
One SMS cost ~0.04Euro (not to expensive).
We use this service on our web site for "Web Hosting Registration" alerts.
If You need more help, contact me again... ;)
Regards
Aleksandar
Hey, just trying to set up the php script - looks good, but as im a complete amateur when it comes to this kinda thing, ive become stuck...
i'm getting this error when running the example script:
Error while executing fopen sending method!
Please check does PHP have OpenSSL support and check does PHP version is greater than 4.3.0.
I've checked that the php version is ok (its 4.3.10) and openssl is enabled
I've also declared my api_id, user and password
i noticed there's a base_s, but am not sure what this is doing?
Any help or suggestions on how to just send a message to a no would be great.
I've literally just dumped the example into sms.php:
<?php
require_once ("sms_api.php");
$mysms = new sms();
echo $mysms->session;
echo $mysms->getbalance();
#$mysms->send ("07743445745", "netsector", "TEST MESSAGE");
?>
is this correct? is that first entry the no?
thanks,
bob
Hi,
"Error while executing fopen sending method!" means that there is some problem while communicating with Clickatell gateway.
Try to setup this variables in class (for version 1.3d):
var $sending_method = "curl";
var $use_ssl = false;
Those variables will force script to use CURL module and will not use SSL connection.
You need to pass this error before try to send any message.
Answers to Your questions:
- example you show here looks ok
- yes, first argument in send() function is destination mobile number
Regards,
Aleksandar
Im up and running with your sms class but messages I send show as Fr: 0 also is CB: 0 can I show a call back number ?
Is that because I'm restricted whilst on free trial with Clickatell ? I just passing an alpha name in double quotes as the second parameter to send()
hello all
I did run the code, the output was:
Error while executing fopen sending method!
Please check does PHP have OpenSSL support and check does PHP version is greater than 4.3.0.
can you tell me how to find $curl_proxy;
$curl_proxy = "http://127.0.0.1:8080";
thanx
I am getting an Error while running this script: Error sending SMS! (ERR: 114, Cannot route message)
How can i get rid of it.?
To Mohsin (mahaidery): That error appears when you send an SMS to a phone number that Clickatell can't accept (typically, you might have forgotten to add the international prefix to it), or possibly because your SMS was "special" and no gateway was found by Clickatell to deliver it. Typical cases of "special" SMS are SMS with accented characters or using a character set that is not plain ASCII, or even trying WAP, sending ringtones, etc. You can see for your country what delivery methods are available (it's listed on Clickatell's website).
To fadi jaatheen (fjaatheen): Try using "curl" to send messages instead of fopen; many hosting providers block access to fopen. See this thread for some alternatives. Also, the error indicates that you might have a way too old PHP installation (or no SSL support). It's time to do an upgrade :)
As for figuring out your proxy address, that's something only you (or your network admin) can know :) If you don't have any proxy on your network, just leave that entry blank and don't use it.
Hello,
session; echo $mysms->getbalance(); #$mysms->send ("32475898978", "32476524679", "TEST MESSAGE"); ?>I try for a week but without result.
I've created a sms.php page that contains only this :
The first number is my phone, the second is my cClickatell sender_id (approuved)
I modified the sms_api.php like this :
var $sending_method = "curl";
var $use_ssl = false;
I also changed the var $unicode = false; to true (I've tested with é, à , è characters)
When I launch sms.php, result is :
b54c510d23c92f5ea879bfbb24506ed2306 (and nothing else)
but no SMS received and no trace about this in the Clickatell message reports.
Verified : my Clickatell API account = OK
PHP Info = OK with cURL
...
What's wrong ?
Help welcome...
By the way, a question : if unicode is set to true, max number of charachters is 70 for 1 sms (= 8 bits) ?
Thank you for your help !
Thommen