PHP code example of like-a-rocket / hotmart

1. Go to this page and download the library: Download like-a-rocket/hotmart library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

like-a-rocket / hotmart example snippets


$hotmart = new Client('https://sandbox.hotmart.com', 'wxyz');

$hotmart->get($endpoint, $parameters = []);

$hotmart->post($endpoint, $parameters = [], $body = []);

$hotmart->patch($endpoint, $parameters = [], $body = []);