Skip to content

devhun/wideshot-api-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP API client for api.wideshot.co.kr

Build Status Latest Stable Version Total Downloads License

Install using composer

Open a shell, cd to your poject and type:

composer require devhun/wideshot-api-client

or edit composer.json and add:

{
    "require": {
        "devhun/wideshot-api-client": "~1.0"
    }
}

If you want to use the GuzzleHttpAdapter, you will need to add Guzzle 6.

Usage examples

Guzzle
require 'vendor/autoload.php';

use Wideshot\WideshotClient;
use Wideshot\Adapter\GuzzleHttpAdapter;

// Using Guzzle 6...
$client = new WideshotClient(
    new GuzzleHttpAdapter('your-api-key')
);

$result = $client->result()->all();

var_export($result);
CURL
require 'vendor/autoload.php';

use Wideshot\WideshotClient;
use Wideshot\Adapter\CurlAdapter;

// Using regular CURL, courtesy of 'malc0mn'
$client = new WideshotClient(
    new CurlAdapter('your-api-key')
);

$result = $client->result()->all();

var_export($result);

About

PHP API client for api.wideshot.co.kr

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages