summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Core/Communicator.php4
-rw-r--r--src/Recipient/BlacklistEntry.php11
-rw-r--r--src/Recipient/Contact.php2
-rw-r--r--src/Recipient/Group.php2
-rw-r--r--src/Recipient/ProcessedBlacklistEntry.php11
-rw-r--r--src/Recipient/ProcessedGroup.php2
-rw-r--r--src/SMS/LoggedOutGoingSMS.php2
7 files changed, 27 insertions, 7 deletions
diff --git a/src/Core/Communicator.php b/src/Core/Communicator.php
index 257a6a4..1417e4c 100644
--- a/src/Core/Communicator.php
+++ b/src/Core/Communicator.php
@@ -4,7 +4,7 @@
* @author Hannes Kindströmmer <hannes@kindstrommer.se>
* @copyright 2017 IP1 SMS
* @license https://www.gnu.org/licenses/lgpl-3.0.txt LGPL-3.0
-* @version 0.1.0-beta
+* @version 0.2.0-beta
* @since File available since Release 0.1.0-beta
* @link http://api.ip1sms.com/Help
* @link https://github.com/iP1SMS/ip1-php-sdk
@@ -94,11 +94,13 @@ class Communicator
case "IP1\RESTClient\Recipient\ProcessedMembership":
$response = $this->sendRequest("api/memberships/".$component->getID(), "DELETE");
return RecipientFactory::createProcessedMembershipFromJSON($response);
+
case "IP1\RESTClient\Recipient\ProcessedBlacklistEntry":
$response = $this->sendRequest("api/blacklist/".$component->getID(), "DELETE");
$stdResponse = json_decode($response);
$created = new \DateTime($stdResponse->Created);
return new ProcessedBlacklistEntry($stdResponse->Phone, $stdResponse->ID, $created);
+
default:
throw new \InvalidArgumentException("Given JsonSerializable not supported.");
}
diff --git a/src/Recipient/BlacklistEntry.php b/src/Recipient/BlacklistEntry.php
index 506e8cb..05e37de 100644
--- a/src/Recipient/BlacklistEntry.php
+++ b/src/Recipient/BlacklistEntry.php
@@ -1,5 +1,14 @@
<?php
-
+/**
+* PHP version 7.1.1
+* @author Hannes Kindströmmer <hannes@kindstrommer.se>
+* @copyright 2017 IP1 SMS
+* @license https://www.gnu.org/licenses/lgpl-3.0.txt LGPL-3.0
+* @version 0.2.0-beta
+* @since File available since Release 0.2.0-beta
+* @link http://api.ip1sms.com/Help
+* @link https://github.com/iP1SMS/ip1-php-sdk
+*/
namespace IP1\RESTClient\Recipient;
use IP1\RESTClient\Core\ProcessableComponentInterface;
diff --git a/src/Recipient/Contact.php b/src/Recipient/Contact.php
index b9c5dba..4b86bb7 100644
--- a/src/Recipient/Contact.php
+++ b/src/Recipient/Contact.php
@@ -4,7 +4,7 @@
* @author Hannes Kindströmmer <hannes@kindstrommer.se>
* @copyright 2017 IP1 SMS
* @license https://www.gnu.org/licenses/lgpl-3.0.txt LGPL-3.0
-* @version 0.1.0-beta
+* @version 0.2.0-beta
* @since File available since Release 0.1.0-beta
* @link http://api.ip1sms.com/Help
* @link https://github.com/iP1SMS/ip1-php-sdk
diff --git a/src/Recipient/Group.php b/src/Recipient/Group.php
index 474f270..ee81d82 100644
--- a/src/Recipient/Group.php
+++ b/src/Recipient/Group.php
@@ -4,7 +4,7 @@
* @author Hannes Kindströmmer <hannes@kindstrommer.se>
* @copyright 2017 IP1 SMS
* @license https://www.gnu.org/licenses/lgpl-3.0.txt LGPL-3.0
-* @version 0.1.0-beta
+* @version 0.2.0-beta
* @since File available since Release 0.1.0-beta
* @link http://api.ip1sms.com/Help
* @link https://github.com/iP1SMS/ip1-php-sdk
diff --git a/src/Recipient/ProcessedBlacklistEntry.php b/src/Recipient/ProcessedBlacklistEntry.php
index 9f3792b..cf2ffc4 100644
--- a/src/Recipient/ProcessedBlacklistEntry.php
+++ b/src/Recipient/ProcessedBlacklistEntry.php
@@ -1,5 +1,14 @@
<?php
-
+/**
+* PHP version 7.1.1
+* @author Hannes Kindströmmer <hannes@kindstrommer.se>
+* @copyright 2017 IP1 SMS
+* @license https://www.gnu.org/licenses/lgpl-3.0.txt LGPL-3.0
+* @version 0.2.0-beta
+* @since File available since Release 0.2.0-beta
+* @link http://api.ip1sms.com/Help
+* @link https://github.com/iP1SMS/ip1-php-sdk
+*/
namespace IP1\RESTClient\Recipient;
use IP1\RESTClient\Core\ProcessedComponentInterface;
diff --git a/src/Recipient/ProcessedGroup.php b/src/Recipient/ProcessedGroup.php
index 76deca3..48e8605 100644
--- a/src/Recipient/ProcessedGroup.php
+++ b/src/Recipient/ProcessedGroup.php
@@ -4,7 +4,7 @@
* @author Hannes Kindströmmer <hannes@kindstrommer.se>
* @copyright 2017 IP1 SMS
* @license https://www.gnu.org/licenses/lgpl-3.0.txt LGPL-3.0
-* @version 0.1.0-beta
+* @version 0.2.0-beta
* @since File available since Release 0.1.0-beta
* @link http://api.ip1sms.com/Help
* @link https://github.com/iP1SMS/ip1-php-sdk
diff --git a/src/SMS/LoggedOutGoingSMS.php b/src/SMS/LoggedOutGoingSMS.php
index 17b374f..31af23a 100644
--- a/src/SMS/LoggedOutGoingSMS.php
+++ b/src/SMS/LoggedOutGoingSMS.php
@@ -4,7 +4,7 @@
* @author Hannes Kindströmmer <hannes@kindstrommer.se>
* @copyright 2017 IP1 SMS
* @license https://www.gnu.org/licenses/lgpl-3.0.txt LGPL-3.0
-* @version 0.1.0-beta
+* @version 0.2.0-beta
* @since File available since Release 0.1.0-beta
* @link http://api.ip1sms.com/Help
* @link https://github.com/iP1SMS/ip1-php-sdk