2017 © Pedro Peláez
 

library compare

E-Contract BVBA comparison API package

image

econtract/compare

E-Contract BVBA comparison API package

  • Wednesday, November 23, 2016
  • by Evertos
  • Repository
  • 1 Watchers
  • 0 Stars
  • 72 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 9 Versions
  • 1 % Grown

The README.md

E-Contract BVBA - Compare package

This package offers the integration of the Aanbieders.be comparison collection API. This API can be used by partners and affiliates of Aanbieders to leverage information from the Aanbieders comparison calculation engine on their own websites., (*1)

Installation

Pull this package in through Composer:, (*2)


{ "require": { "econtract/compare": "3.*" } }

Next, you will need to add several values to your .env file:, (*3)


API_staging=false // Is this a staging server? API_host=your_secret_api_key // API host API_key=your_public_api_key // Public API key API_secret=your_secret_api_key // Private API key

In order to use the API (and thus this package), an API key is required. If you are in need of such a key, please get in touch with Aanbieders.be via their website., (*4)

Laravel installation

Add the service provider to your config/app.php file:, (*5)


'providers' => array( //... \Econtract\Compare\CompareServiceProvider::class, )

Add the API as an alias to your config/app.php file, (*6)


'facades' => array( //... 'Api' => \Econtract\Compare\Facades\Compare::class, ),

Usage

Laravel usage

You can access the API using the alias you have selected in your config/app.php file:, (*7)


$products = Api::getProducts( array( 'sg' => 'consumer', 'cat' => 'internet', 'lang' => 'nl', ) ); $suppliers = Api::getSuppliers( array( 'sg' => 'consumer', 'cat' => 'internet', 'lang' => 'nl', ) ); $comparisons = Api::createComparison( array( 'sg' => 'consumer', 'cat' => 'gas', 'lang' => 'nl', 'u' => '4000', 'ut' => 'kwh', 'zip' => '3540', 't' => 'no', 'd' => '0', ) );

For information regarding all possible parameters and their properties, we kindly refer you to the API documentation., (*8)

Non-laravel usage


include('vendor/autoload.php'); use Econtract/Compare/CompareService; $dotenv = new Dotenv\Dotenv(__DIR__); $dotenv->load(); $compareService = new CompareService(); $compareService->getProducts( array( 'sg' => 'consumer', 'cat' => 'internet', 'lang' => 'nl', ) );

License

This package is proprietary software and may not be copied or redistributed without explicit permission., (*9)

Contact

Charles Dekkers (owner), (*10)

  • Email: charles@aanbieders.be
  • Telephone: +32 497 50 49 08

Jan Oris (developer), (*11)

  • Email: jan.oris@ixudra.be
  • Telephone: +32 496 94 20 57

The Versions

23/11 2016

dev-master

9999999-dev http://aanbieders.be

E-Contract BVBA comparison API package

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jan Oris

api aanbieders e-contract

23/11 2016

2.1.2

2.1.2.0 http://aanbieders.be

E-Contract BVBA comparison API package

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jan Oris

api aanbieders e-contract

26/04 2016

2.1.1

2.1.1.0 http://aanbieders.be

E-Contract BVBA comparison API package

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jan Oris

api aanbieders e-contract

30/03 2016

2.1.0

2.1.0.0 http://aanbieders.be

E-Contract BVBA comparison API package

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jan Oris

api aanbieders e-contract

02/03 2016

2.0.0

2.0.0.0 http://aanbieders.be

E-Contract BVBA comparison API package

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jan Oris

api aanbieders e-contract

24/02 2016

1.0.3

1.0.3.0 http://aanbieders.be

E-Contract BVBA comparison API package

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jan Oris

api aanbieders e-contract

24/02 2016

1.0.2

1.0.2.0 http://aanbieders.be

E-Contract BVBA comparison API package

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jan Oris

api aanbieders e-contract

24/02 2016

1.0.1

1.0.1.0 http://aanbieders.be

E-Contract BVBA API package

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jan Oris

api aanbieders e-contract

24/02 2016

1.0.0

1.0.0.0 http://aanbieders.be

E-Contract BVBA API package

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jan Oris

api aanbieders e-contract