# Data Loader API

## Load Sample Data

```php 
<?php

include 'autoload.php';

try {

    $token = 'L3aD>L2PjxtU';
    $catalogId = 'YEzFjXRG3G';

    $apiObj = new \Onyx\Api($token);
    $response = $apiObj->dataLoader();
    echo '<pre>';
    print_r($apiObj->getLastResponseHeaders());
    print_r($response);
    print_r(json_encode($response));

//    Sample Response : {"success":true,"data":{"message":"Sample data loaded"}}

} catch (Exception $e) {
    echo 'Message: ' . $e->getMessage();
}

?>
```