Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/s-patompong/sedo-api-client
Library to talk with Sedo API
https://github.com/s-patompong/sedo-api-client
api composer library
Last synced: 2 months ago
JSON representation
Library to talk with Sedo API
- Host: GitHub
- URL: https://github.com/s-patompong/sedo-api-client
- Owner: s-patompong
- Created: 2017-05-09T08:46:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-12T03:55:29.000Z (over 7 years ago)
- Last Synced: 2024-04-19T03:42:50.401Z (9 months ago)
- Topics: api, composer, library
- Language: PHP
- Homepage:
- Size: 37.1 KB
- Stars: 0
- Watchers: 6
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sedo-api-client
Library to talk with Sedo API## 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
```
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);
});
```