2017 © Pedro Peláez
 

library sedo-api-client

image

pangpondpon/sedo-api-client

  • Friday, May 12, 2017
  • by pangpondpon
  • Repository
  • 4 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

sedo-api-client

Library to talk with Sedo API, (*1)

Laravel Installation

  1. Add this code to your /config/app.php - providers array SedoClient\SedoServiceProvider::class
  2. Run php artisan vendor:publish to publish configuration file, it will be located at /config/sedo.php (Note: You don't need to do this if you don't want to change anything in the configuration file.)
  3. Add this to .env file and change them to your credentials
SEDO_USERNAME=
SEDO_PASSWORD=
SEDO_PARTNER_ID=
SEDO_SIGN_KEY=

Usage

You can inject the class to your method or use resolve helper, (*2)

Route::get('/inject', function (SedoClient\Sedo $sedo) {
    dd($sedo);
});

Route::get('/inject-domain', function (SedoClient\SedoDomain $sedoDomain) {
    dd($sedoDomain);
});

Route::get('/inject-resolve', function () {
    $sedo = resolve('SedoClient\Sedo');
    dd($sedo);
});

The Versions

12/05 2017

dev-master

9999999-dev

  Sources   Download

The Development Requires

by Patompong Savaengsuk