Download the PHP package rankim-software/rankim-api without Composer
On this page you can find all versions of the php package rankim-software/rankim-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rankim-software/rankim-api
More information about rankim-software/rankim-api
Files in rankim-software/rankim-api
Package rankim-api
Short Description API de integracao com a plataforma Rankim
License MIT
Informations about the package rankim-api
Api de integração Rankim (PHP)
Integração com a plataforma de marketing e CRM Rankim
Para mais informações, acesse o nosso site.
Direitos reservados à Rankim Soluções de Software Ltda.
Requísitos
- PHP 5.3 ou superior
- Extensões do PHP "php_curl" e "php_openssl"
- Apache 2.2+
Via composer
composer require rankim-software/rankim-api
Instância da API
~~~.php
// include autoload (direct, not needed by Composer) include '../src/autoload.php';
OR
// if use composer (autoload) require DIR . '/vendor/autoload.php';
// instance API $api = new \Rankim\Api('{id}', '{access_token}');
// get real estate listing $data = $api->get('wallet');
// check errors if ($api->getError()) { var_dump($api->getError()); }
// the output (array) var_dump($data);
### Parâmetros da instância da classe
Tradução dos parâmetros
| paràmetro | tipo | descrição |
| ------------- | -------------| ------------- |
| id | integer (11) | id do usuário da API
| access_token | string (40) | token de autenticação do usuário
### Funções da API
##### $api->auth()
Verificar se o ID e Token de usuários são válidos
##### $api->get('wallet')
Lista os imóveis da conta do usuário (retorno array)
##### $api->get('realty/123')
Trás informações de um imóvel específico na carteira (detalhes, imagens e características)
##### $api->put('lead', array())
Registra uma lead na sua conta (com ou sem campanha)
~~~.php
$api->put('lead', array(
'name' => 'nome do lead',
'email' => 'email do lead',
'phone' => 'telefone do lead',
'campaign' => 1 (opcional)
))
$api->getError()
Mostra os erros de execução da API
Atualização regular
@Release 1.1.2/2018
All versions of rankim-api with dependencies
lib-curl Version ^7.36
lib-openssl Version ^1.0.1.7