diff --git a/CHANGE.md b/CHANGE.md index 8b3230b..d8b4911 100755 --- a/CHANGE.md +++ b/CHANGE.md @@ -1,6 +1,10 @@ Change Log ========== +VERSION 2.6.0 +------------- +* Added collection deletion - added collection deletion by name + VERSION 2.5.14 ------------- * Updated README.md - added basic info regarding local development setup diff --git a/src/Client/KeenIOClient.php b/src/Client/KeenIOClient.php index ca7498b..2a1d435 100755 --- a/src/Client/KeenIOClient.php +++ b/src/Client/KeenIOClient.php @@ -14,6 +14,7 @@ * * @method array getCollection(string $eventCollection, array $args = array()) {@command KeenIO getCollection} * @method array getCollections(array $args = array()) {@command KeenIO getCollections} + * @method array deleteCollection(array $args = array()) {@command KeenIO getProperty} * * @method array getResources(array $args = array()) {@command KeenIO getResources} * @method array getProjects(array $args = array()) {@command KeenIO getProjects} * @method array getProject(array $args = array()) {@command KeenIO getProject} @@ -41,7 +42,7 @@ class KeenIOClient extends GuzzleClient { - const VERSION = '2.5.14'; + const VERSION = '2.6.0'; /** * Factory to create new KeenIOClient instance. diff --git a/src/Client/Resources/keen-io-3_0.php b/src/Client/Resources/keen-io-3_0.php index 9eff6e1..49798e4 100755 --- a/src/Client/Resources/keen-io-3_0.php +++ b/src/Client/Resources/keen-io-3_0.php @@ -297,6 +297,31 @@ ), ), + 'deleteCollection' => array( + 'uri' => 'projects/{projectId}/events/{collection_name}', + 'description' => 'Deletes the specified collection.', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'projectId' => array( + 'location' => 'uri', + 'type' => 'string' + ), + 'masterKey' => array( + 'location' => 'header', + 'description' => 'The Master API Key.', + 'sentAs' => 'Authorization', + 'pattern' => '/^([[:alnum:]])+$/', + 'type' => 'string', + 'required' => true, + ), + 'collection_name' => array( + 'location' => 'uri', + 'description' => 'The collection name.', + 'required' => true, + ), + ), + ), + 'getProperty' => array( 'uri' => 'projects/{projectId}/events/{event_collection}/properties/{property_name}', 'description' => 'GET returns the property name, type, and a link to sub-resources.',