2017 © Pedro Peláez
 

library fasttrack-client

This Fasttrack library enables you to request the Fasttrack API in a convenient way. For more information about the Fasttrack API please see https://api.fasttrack-intl.com

image

fasttrack/fasttrack-client

This Fasttrack library enables you to request the Fasttrack API in a convenient way. For more information about the Fasttrack API please see https://api.fasttrack-intl.com

  • Monday, July 24, 2017
  • by fasttrack
  • Repository
  • 1 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Fasttrack (PHP)

Installation

Add to your composer.json:, (*1)

{
    "require": {
        "fasttrack/fasttrack-client": "*"
    }
}

And do:, (*2)

composer install

Usage

Get company

getCompany('example.com');
  print_r($company);
} catch (Exception $err) {
  print_r($err);
}

?>

Get contact

getContact('example@example.com');
  print_r($company);
} catch (Exception $err) {
  print_r($err);
}

?>

Error handling

getContact('example@example.com');
  print_r($company);
} catch (\Fasttrack\Exceptions\UnauthorizedException $e) {
  print_r('UnauthorizedException');
}

?>

Available exceptions

  • BadParametersException: send parameters through GET method
  • BadRequestException: request is malformed
  • InternalServerException
  • InvalidVersionException: API version is invalid
  • MethodNotAllowedException: you tried to access an endpoint with an invalid method
  • NoResultException: no result matching your request
  • NotAcceptableException: you requested a format that is not json
  • NotFoundException: specified endpoint could not be found
  • TooManyRequestsException: you made too many requests on the API in a short period of time
  • UnauthorizedException: API key is wrong
  • VersionRequiredException: send API version in the HTTP Accept headers

The Versions

24/07 2017

dev-master

9999999-dev http://github.com/fasttrack/fasttrack-php

This Fasttrack library enables you to request the Fasttrack API in a convenient way. For more information about the Fasttrack API please see https://api.fasttrack-intl.com

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fast Track

api http fasttrack

24/07 2017

1.4

1.4.0.0 http://github.com/fasttrack/fasttrack-php

This Fasttrack library enables you to request the Fasttrack API in a convenient way. For more information about the Fasttrack API please see https://api.fasttrack-intl.com

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fast Track

api http fasttrack

21/07 2017

1.3

1.3.0.0 http://github.com/fasttrack/fasttrack-php

This Fasttrack library enables you to request the Fasttrack API in a convenient way. For more information about the Fasttrack API please see https://api.fasttrack-intl.com

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fast Track

api http fasttrack

17/07 2017

1.1

1.1.0.0 http://github.com/fasttrack/fasttrack-php

This Fasttrack library enables you to request the Fasttrack API in a convenient way. For more information about the Fasttrack API please see https://api.fasttrack-intl.com

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fast Track

api http fasttrack