New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

addressix/addressixapi-client-php

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

addressix/addressixapi-client-php

Client library for Addressix API

Source
Packagist
Version
1.2.1
Version published
Total downloads
75
Maintainers
0
Created
Source

Addressix API PHP Client

Installation

You can either use Composer or directly use the git source.

Using Composer

To install via composer follow the installation instructions if you do not already have composer installed.

Once composer is installed, execute the following command in your project root to install this library:

$ composer require addressix/addressixapi-client-php

Be sure to include the composer autoload in your project

require_once '/path/to/your-project/vendor/autoload.php';

Using Git

$ git@github.com:addressix/addressixapi-client-php.git

Usage

Initialization

$client = new \AddressixAPI\Client(
  array('clientid' => '<CLIENTID>', 
        'secret' => '<SECRET>',
        'redirect_uri' => '<REDIRECT_URI>'
  ));

The Client takes a config array with the following mandatory parameters:

  • clientid (String): your apps client id
  • secret (String): your apps secret
  • redirect_uri (String): the oauth2callback url (which must be registered)

Optional options:

  • endpoint (String): Overwrite the default Addressix API endpoint
  • verifyssl (boolean): wheter to verify the SSL peer (default true)

Obtain the Apps Client ID and Secret on Create API Application

Keywords

php

FAQs

Package last updated on 28 Apr 2017

Related posts