Completed

Login na Api do mautic instalado no hostgator

Published on the June 08, 2016 in IT & Programming

About this project

Open

Preciso integrar o mautic via oauth api com minha aplicação, a integração em si já está pronta, mas a conexão com a api do mautic está com problema

preciso portanto ter acesso a api do mautic via oauth. Para ser mais direto, preciso que o código PHP abaixo imprima "ok" ao invés de imprimir "erro"

// Initiate the auth object
$auth = ApiAuth::initiate(array(
    'baseUrl'      => $this->baseurl,
    'version'      => 'OAuth1a',
    'clientKey'    => $this->apkey,
    'clientSecret' => $this->appsecret,
    'callback'    => 'startinvestimentos.com/mautic_test'
));

try{
    if ($auth->validateAccessToken()) {
        if ($auth->accessTokenUpdated()) {
            $accessTokenData = $auth->getAccessTokenData();
            //store access token data however you want
        }
    }
    echo 'ok';
} catch (Exception $ex) {
    echo 'erro';
}

Category IT & Programming
Subcategory Web development
Is this a project or a position? Project
I currently have I have specifications
Required availability As needed
Experience in this type of projects Yes (I have managed this kind of project before)
Roles needed Developer

Delivery term: Not specified

Skills needed