{"id":15024323,"url":"https://github.com/phpenterprise/rd-station-api","last_synced_at":"2025-04-09T20:02:12.369Z","repository":{"id":57040314,"uuid":"44504734","full_name":"phpenterprise/rd-station-api","owner":"phpenterprise","description":"API de integração com o RD Station","archived":false,"fork":false,"pushed_at":"2019-06-10T17:19:34.000Z","size":43,"stargazers_count":4,"open_issues_count":0,"forks_count":4,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-09T20:00:55.060Z","etag":null,"topics":["api-client","php56","rd-station"],"latest_commit_sha":null,"homepage":"https://rdstation.com.br","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phpenterprise.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-19T01:38:09.000Z","updated_at":"2022-08-13T18:56:09.000Z","dependencies_parsed_at":"2022-08-24T00:50:50.045Z","dependency_job_id":null,"html_url":"https://github.com/phpenterprise/rd-station-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpenterprise%2Frd-station-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpenterprise%2Frd-station-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpenterprise%2Frd-station-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpenterprise%2Frd-station-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phpenterprise","download_url":"https://codeload.github.com/phpenterprise/rd-station-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103868,"owners_count":21048245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-client","php56","rd-station"],"created_at":"2024-09-24T20:00:07.656Z","updated_at":"2025-04-09T20:02:12.325Z","avatar_url":"https://github.com/phpenterprise.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RD Station API [Deprecated]\nAPI de integração simplificada com a plataforma RD Station\n\n[![GPL Licence](https://badges.frapsoft.com/os/gpl/gpl.svg?v=103)](https://opensource.org/licenses/GPL-3.0/) [![PHPPackages Rank](http://phppackages.org/p/smartdealer/sdapi/badge/rank.svg)](http://phppackages.org/p/phpenterprise-dev/rd-station-api) ![](https://reposs.herokuapp.com/?path=phpenterprise-dev/rd-station-api\u0026style=flat)\n\n### Requísitos \n\n* PHP 5.3 ou superior\n* Extensões do PHP \"php_curl\" e \"php_openssl\"\n* Apache 2.2+\n\n\n### Download via composer   \n\n    composer require phpenterprise-dev/rd-station-api:dev-master\n\n### Exemplo de uso\n\n~~~.php\n\n// include lib\nrequire '../src/rdstation/api.php';\n\n// authentication (set your RD Station user)\n$api = New \\RdStation\\Api('{user@example.com}', '{pass}', '{session_key:optional}');\n\n// call method (for get leads totals) \n$a = $api-\u003egetMetrics();\n        \n// debug\nvar_dump($a);\n\n# example of response\n# int(1403)\n\n~~~\n\n### Instância\n\n* Api (user, pass, session_key)\n\n| Parâmetro     | tipo         |  descrição  |\n| ------------- | ------------- | ------------- |\n| user          | string       | email do usuário RD Station\n| senha         | string       | senha do usuário\n| session_key   | integer      | chave da sessão (opcional)\n\nA chave da sessão possibilida multiplas sessões na plataforma.\n\n### Métodos\n\n* API : getMetrics\n\n  Retorna o total da base de leads\n  \n* API : getVisitors\n\n  Retorna o total de visitas no mês\n  \n* API : exportLeads (query:string)\n\n  Exporta todas as leads armazenadas na base (array de dados)\n      \n#### Parâmetros\n\n| Posição        | tipo          |  descrição  |\n| -------------  | ------------- | ------------- |\n| 1 (query)      | string        | texto para filtro das leads (opcional)\n  \n  Dependendo da quantidade de leads, este prodecimento poderá levar mais 5 minutos\n\n* API : outputCSV\n\n  Compila os registros exportados em arquivo CSV\n  \n#### Campos\n\n| coluna        | tipo         |  descrição  |\n| ------------- | ------------- | ------------- |\n| name          | string       | nome\n| mail          | string       | email\n| phone         | string       | telefone\n| origin        | string       | tag ou identificador do evento\n| uf            | string       | estado (ex: SP)\n  \n* API : logout\n\n  Fecha a sessão do usuário\n\n### Atualização regular.\n\n@Release 1.7 (12/2017, stable)\n\nNota da versão: API Experimental \n\n\"VII billion Alicubi inter populum, ut semper aliquis est magis quam vobis\" $P\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpenterprise%2Frd-station-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphpenterprise%2Frd-station-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpenterprise%2Frd-station-api/lists"}