Skip to content

altafsamnani/verticals-bonecrusher-hexon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codacy Badge

Hexon SDK

  • Exposes all needed features to publish an ad on Hexon integrator.

Configuration File

Register a new provider in config.php

'providers' => [
    Bonecrusher\Hexon\HexonServiceProvider::class,
],

and after run artisan command

php artisan hexon:publish

Check into folder /config the file hexon.php and change whatever config var. You can also use your .env file to set configs.

How to use Hexon SDK - Get requests

  • Example 1: Get all accounts
Hexon::accounts()->get();
  • Example 2: Get just one account
Hexon::accounts('marktplaats:123456')->get();
  • Example 3: Get just one account with its related sites
Hexon::accounts('marktplaats:123456')->site()->get();
  • Example 4: Get the make '11' with the related makewarrantylabels '535'
Hexon::makes(11)->makewarrantylabels(535)->get();
  • Example 5: Get account resource definition (you can make it for any resource)
Hexon::accounts()->definition();
  • Example 6: Get just one account and select only 'site_code' and 'client_id' fields
Hexon::accounts('marktplaats:123456')->select(['site_code', 'client_id'])->get()

How to use Hexon SDK - Post / Put / Delete requests

  • Post: Create new contact person
// $payload array => request
Hexon::contactpersons()->create($payload);
  • Put: Update contact person
// $id int => the contact person id to update
// $payload array => request
Hexon::contactpersons($id)->update($payload);
  • Delete: Delete contact person
// $id int => the contact person id to delete
Hexon::contactpersons($id)->delete();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages