Biblioteca de conexao com o hotmart

1.0.2 2018-10-02 15:05 UTC

This package is auto-updated.

Last update: 2024-10-29 05:46:37 UTC


README

Features

  • v1.0.1 Iniciando a biblioteca.

Example of use

Install: composer require rafael.paulino/hotmart

<?php

include 'vendor/autoload.php';
use Hotmart\HotmartFacade;

$app_id = "XXXX"; //Codigo que identifica sua aplicacao para o hotmart (fornecida pela hotmart)
$app_secret = "XXXXXX"; //Senha gerada para sua aplicacao (fornecida pela hotmart)
$my_url = "http://localhost:81/hotmartPHPApi/index2.php"; //URL de redirecionamento apos autenticacao no login hotmart e a geracao do code 

$facade = new HotmartFacade($app_id, $app_secret, $my_url);
echo $token = $facade->getToken();
echo '<hr>';
$user = $facade->getUserInfo();
echo '<pre>';
var_dump($user);
echo '</pre>';
echo '<hr>';