PHP Classes

File: examples/index.php

Recommend this page to a friend!
  Classes of Wesley Silva   Hotmart PHP API   examples/index.php   Download  
File: examples/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Hotmart PHP API
Get the Hotmart user account details using its API
Author: By
Last change:
Date: 4 years ago
Size: 267 bytes
 

Contents

Class file image Download
<?php

ini_set
('display_errors', 'ALL');
require_once
'../vendor/autoload.php';

use
Wesleydeveloper\Hotmart\Hotmart;

$config = json_decode(file_get_contents('../config.json'), true);
var_dump($config);
$hot = new Hotmart($config);
var_dump($hot->getLoggedUser());