Skip to content

Commit ba10d32

Browse files
author
Omar Usman
committed
Merge pull request #7 from ClickSend/namespace
Update readme.
2 parents 7455f8f + 3aee886 commit ba10d32

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,3 +149,5 @@ composer.phar
149149
# Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file
150150
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
151151
# composer.lock
152+
composer.lock
153+
index.php

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ Sample Code:
4545

4646
require 'vendor/autoload.php';
4747

48-
\ClickSend\Configuration::$username = 'YOUR USERNAME';
49-
\ClickSend\Configuration::$key = 'YOUR API KEY';
48+
\ClickSendLib\Configuration::$username = 'YOUR USERNAME';
49+
\ClickSendLib\Configuration::$key = 'YOUR API KEY';
5050

5151
$messages = [
5252
[
@@ -69,12 +69,12 @@ $messages = [
6969

7070
try {
7171

72-
$controller = new \ClickSend\Controllers\SMSController('your-username', 'your-api-key');
72+
$controller = new \ClickSendLib\Controllers\SMSController('your-username', 'your-api-key');
7373
$response = $controller->sendSms(['messages' => $messages]);
7474

7575
print_r($response);
7676

77-
} catch(\ClickSend\APIException $e) {
77+
} catch(\ClickSendLib\APIException $e) {
7878

7979
print_r($e->getResponseBody());
8080

0 commit comments

Comments
 (0)