dev-master
9999999-dev http://github.com/fagundes/ionic-cloud-api-phpClient library for Ionic Cloud APIs
Apache-2.0
The Requires
The Development Requires
api cloud messages push notifications ionic
Wallogit.com
2017 © Pedro Peláez
Client library for Ionic Cloud APIs
The Ionic Cloud API Library enables you to work with Ionic APIs such as Push, Auth and Deploy., (*1)
This library is not ready yet. Todo list:, (*2)
WIP, (*3)
You can use Composer or simply Download the Release, (*4)
The preferred method is via composer. Follow the installation instructions if you do not already have composer installed., (*5)
Once composer is installed, execute the following command in your project root to install this library:, (*6)
composer require fagundes/ionic-cloud-api-php:^0.x-dev
Finally, be sure to include the autoloader:, (*7)
require_once '/path/to/your-project/vendor/autoload.php';
If you abhor using composer, you can download the package in its entirety. The Releases page lists all stable versions. Download any file
with the name ionic-cloud-api-php-[RELEASE_NAME].zip for a package including this library and its dependencies., (*8)
Uncompress the zip file you download, and include the autoloader in your project:, (*9)
require_once '/path/to/ionic-cloud-api-php/vendor/autoload.php';
See the examples/ directory for examples of the key client features. You can
view them in your browser by running the php built-in web server., (*10)
$ composer run-script serve
And then browsing to the host and port you specified
(in the above example, http://localhost:8080)., (*11)
// include your composer dependencies
require_once 'vendor/autoload.php';
$client = new Ionic\Client();
$client->setApplicationName("Client_Library_Examples");
$client->setApiToken("YOUR_API_TOKEN");
$service = new Ionic\Service\Push($client);
$notifications = $service->notifications->listNotifications();
foreach ($notifications as $notification) {
echo 'UUID: ', $notification->getUuid(), ' ', $notification->getCreated()->format('d/m/Y \a\t H:i'), "<br /> \n";
}
This project is inspired by Google APIs Client Library for PHP., (*12)
Client library for Ionic Cloud APIs
Apache-2.0
api cloud messages push notifications ionic