Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 712 Bytes

API.md

File metadata and controls

33 lines (20 loc) · 712 Bytes

Using the API

The API class used in the SDK is the needed proxy class to have access to any other API functionality. It's usage is very simple.

First, you need to import the composer autoload in your php file:

<?php
    
    require_once './vendor/autoload.php';
    
    // ...

After that, you can instantiate a new API class:

<?php
    
    require_once './vendor/autoload.php';
    
    $email   = 'teste.sdk@skyhub.com.br';
    $apiKey  = 'ddRTGUrf_bho17FooTjC';

    /** @var \SkyHub\Api $api */
    $api = new SkyHub\Api($email, $apiKey);

Doing this, you will be allowed to use any integration functionality.

Back

Continue: Catalog