1. Go to this page and download the library: Download mysmile/apiclient library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mysmile / apiclient example snippets
php
$endpoint = 'http://demo.mysmile.com.ua/api'; // please set your endpoint instead of demo
$manager = Manager::getInstance()
->setEndpoint($endpoint);
php
$language = new Language($manager);
$response = $language->getData();
php
$contact = new Contact($manager);
$response = $contact->getData();
php
$params = array('lang' => 'en');// list of available languages can be get using Language Resource
$content = new Content($manager);
$response = $content->getData($params);
php
$params = array('lang' => 'en', 'slug' => 'index'); // how to get list of available slugs is presented in the example above
$content = new Content($manager);
$response = $content->getData($params);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.