2017 © Pedro Peláez
 

library businessbox

API Integration with 'Your Business in a Box'

image

vultuk/businessbox

API Integration with 'Your Business in a Box'

  • Wednesday, August 12, 2015
  • by vultuk
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,621 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

BusinessBox

Integration with Business in a Box API, (*1)

Implementation

Creating an Encryption object

$encrypt = new Encrypt(
   '123456789',   // Public Key
   '123456789123456789123456789123456789123456789123456789',   // Secret Key
)

Creating a client

$client = Client::create([
    'title' => 'Mr',
    'first_name' => 'Bill',
    'surname' => 'Webber',
    'house_number' => '123',
    'address' => Client::combineAddress('123 Test Road', 'Testville', 'Testerton'),
    'postcode' => 'TE5 7ER',
    'telephone_no' => '01234567890',
]);

Creating a product

$pensionProduct = Pension::create([
    'reference' => '1234567',
    'would_you_like_a_review' => 'Yes',
    'is_currently_drawing_down' => 'No',
    'estimated_pension_value' => 15000,
    'provider_name' => 'Some Pension Co',
]);

Creating an appointment

$appointment = Appointment::create([
    new Carbon('2015-11-01 09:20'),
    'Knock Loudly'
]);

Submitting to the remote API

$result = Remote::request(
    $client,
    $pensionProduct,
    $appointment,
    'test-api/echo',
    'http://www.myurl.com/',
    $encrypt
);

The Versions

12/08 2015

dev-master

9999999-dev

API Integration with 'Your Business in a Box'

  Sources   Download

MIT

The Requires

 

The Development Requires

by Simon Skinner

11/08 2015

1.0.8

1.0.8.0

API Integration with 'Your Business in a Box'

  Sources   Download

MIT

The Requires

 

The Development Requires

by Simon Skinner

10/08 2015

1.0.7

1.0.7.0

API Integration with 'Your Business in a Box'

  Sources   Download

MIT

The Requires

 

The Development Requires

by Simon Skinner

10/08 2015

1.0.6

1.0.6.0

API Integration with 'Your Business in a Box'

  Sources   Download

MIT

The Requires

 

The Development Requires

by Simon Skinner

10/08 2015

1.0.5

1.0.5.0

API Integration with 'Your Business in a Box'

  Sources   Download

MIT

The Requires

 

The Development Requires

by Simon Skinner

10/08 2015

1.0.4

1.0.4.0

API Integration with 'Your Business in a Box'

  Sources   Download

MIT

The Requires

 

The Development Requires

by Simon Skinner

10/08 2015

1.0.3

1.0.3.0

API Integration with 'Your Business in a Box'

  Sources   Download

MIT

The Requires

 

The Development Requires

by Simon Skinner

10/08 2015

1.0.2

1.0.2.0

API Integration with 'Your Business in a Box'

  Sources   Download

MIT

The Requires

 

The Development Requires

by Simon Skinner

10/08 2015

1.0.1

1.0.1.0

API Integration with 'Your Business in a Box'

  Sources   Download

MIT

The Requires

 

The Development Requires

by Simon Skinner

07/08 2015

1.0.0

1.0.0.0

API Integration with 'Your Business in a Box'

  Sources   Download

MIT

The Requires

 

The Development Requires

by Simon Skinner