Changed username to password
This commit is contained in:
parent
47ad693339
commit
c3751e7e57
|
@ -35,7 +35,7 @@ class Clickatell extends Core {
|
||||||
* @var string $message
|
* @var string $message
|
||||||
* @var array $this->recipients
|
* @var array $this->recipients
|
||||||
* @var string $recipient
|
* @var string $recipient
|
||||||
* @var string $this->username
|
* @var string $this->password
|
||||||
* @var string $this->originator
|
* @var string $this->originator
|
||||||
* @var int $success
|
* @var int $success
|
||||||
* @var string $error
|
* @var string $error
|
||||||
|
@ -46,7 +46,7 @@ class Clickatell extends Core {
|
||||||
$error = '';
|
$error = '';
|
||||||
foreach($this->recipients as $recipient) {
|
foreach($this->recipients as $recipient) {
|
||||||
$ch = curl_init();
|
$ch = curl_init();
|
||||||
curl_setopt($ch, CURLOPT_URL, "https://platform.clickatell.com/messages/http/send?apiKey=".urlencode($this->username)."&to=".urlencode($recipient)."&content=".urlencode($message));
|
curl_setopt($ch, CURLOPT_URL, "https://platform.clickatell.com/messages/http/send?apiKey=".urlencode($this->password)."&to=".urlencode($recipient)."&content=".urlencode($message));
|
||||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
||||||
$headers = array();
|
$headers = array();
|
||||||
$headers[] = "Content-Type: application/x-www-form-urlencoded";
|
$headers[] = "Content-Type: application/x-www-form-urlencoded";
|
||||||
|
|
Loading…
Reference in New Issue