2017-25 © Pedro Peláez
 

library apiclient

Rest api client for MySmile CMS

image

mysmile/apiclient

Rest api client for MySmile CMS

  • Thursday, January 1, 2015
  • by picamator
  • Repository
  • 2 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

MySmile API REST Client

Latest Stable Version License Build Status Coverage Status SensioLabsInsight, (*1)

Rest api client Client for MySmile CMS., (*2)

Requirements

  • PHP 5.3+
  • Curl

Installation

The best way to install MySmile Api Client is use composer:, (*3)

  1. Update your composer.json
{
    "require": {
        "mysmile/apiclient": "dev-master"
    }
}
  1. Run composer update

Usage

Manager configuration

``` php $endpoint = 'http://demo.mysmile.com.ua/api'; // please set your endpoint instead of demo $manager = Manager::getInstance() ->setEndpoint($endpoint);, (*4)


For developing purpose it's possible to configure proxy:
$proxy   = 'http://127.0.0.1:8888';
$manager = Manager::getInstance()
    ->setProxy();

### Get language list ``` php $language = new Language($manager); $response = $language->getData();

Get contact

``` php $contact = new Contact($manager); $response = $contact->getData();, (*5)


### Get content list -------------------- ``` php $params = array('lang' => 'en');// list of available languages can be get using Language Resource $content = new Content($manager); $response = $content->getData($params);

Get content by slug

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);, (*6)

Example

Mobile version of MySmile that is based on MySmile Api Client can be found here /doc/example., (*7)

Installation

Run composer update in /doc/example., (*8)

License

BSD-3-Clause, (*9)

The Versions

01/01 2015

dev-master

9999999-dev

Rest api client for MySmile CMS

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Sergii Pryz

rest api client

01/01 2015

v1.3.0

1.3.0.0

Rest api client for MySmile CMS

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Sergii Pryz

rest api client

01/01 2015

dev-dev

dev-dev

Rest api client for MySmile CMS

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Sergii Pryz

rest api client