PHPackages                             phpenterprise-dev/rd-station-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. phpenterprise-dev/rd-station-api

ActiveLibrary[API Development](/categories/api)

phpenterprise-dev/rd-station-api
================================

RD Station API for Metrics

45754PHP

Since Jun 10Pushed 6y agoCompare

[ Source](https://github.com/phpenterprise-dev/rd-station-api)[ Packagist](https://packagist.org/packages/phpenterprise-dev/rd-station-api)[ RSS](/packages/phpenterprise-dev-rd-station-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

RD Station API \[Deprecated\]
=============================

[](#rd-station-api-deprecated)

API de integração simplificada com a plataforma RD Station

[![GPL Licence](https://camo.githubusercontent.com/37b8b4771f7595a6a62de0cdc9a864fd08183d548e2261e12508b23c475358cc/68747470733a2f2f6261646765732e66726170736f66742e636f6d2f6f732f67706c2f67706c2e7376673f763d313033)](https://opensource.org/licenses/GPL-3.0/) [![PHPPackages Rank](https://camo.githubusercontent.com/ed8b284fac0ffdbb955f870223ba8a2750aa6f6d133969d5ec662696a5c1c7d8/687474703a2f2f7068707061636b616765732e6f72672f702f736d6172746465616c65722f73646170692f62616467652f72616e6b2e737667)](http://phppackages.org/p/phpenterprise-dev/rd-station-api) [![](https://camo.githubusercontent.com/86b1addc97d09f43b17a81675c13cb64e9f4eb64fa4430bda455ad38154f73a4/68747470733a2f2f7265706f73732e6865726f6b756170702e636f6d2f3f706174683d706870656e74657270726973652d6465762f72642d73746174696f6e2d617069267374796c653d666c6174)](https://camo.githubusercontent.com/86b1addc97d09f43b17a81675c13cb64e9f4eb64fa4430bda455ad38154f73a4/68747470733a2f2f7265706f73732e6865726f6b756170702e636f6d2f3f706174683d706870656e74657270726973652d6465762f72642d73746174696f6e2d617069267374796c653d666c6174)

### Requísitos

[](#requísitos)

- PHP 5.3 ou superior
- Extensões do PHP "php\_curl" e "php\_openssl"
- Apache 2.2+

### Download via composer

[](#download-via-composer)

```
composer require phpenterprise-dev/rd-station-api:dev-master

```

### Exemplo de uso

[](#exemplo-de-uso)

```
// include lib
require '../src/rdstation/api.php';

// authentication (set your RD Station user)
$api = New \RdStation\Api('{user@example.com}', '{pass}', '{session_key:optional}');

// call method (for get leads totals)
$a = $api->getMetrics();

// debug
var_dump($a);

# example of response
# int(1403)
```

### Instância

[](#instância)

- Api (user, pass, session\_key)

Parâmetrotipodescriçãouserstringemail do usuário RD Stationsenhastringsenha do usuáriosession\_keyintegerchave da sessão (opcional)A chave da sessão possibilida multiplas sessões na plataforma.

### Métodos

[](#métodos)

- API : getMetrics

    Retorna o total da base de leads
- API : getVisitors

    Retorna o total de visitas no mês
- API : exportLeads (query:string)

    Exporta todas as leads armazenadas na base (array de dados)

#### Parâmetros

[](#parâmetros)

Posiçãotipodescrição1 (query)stringtexto para filtro das leads (opcional)Dependendo da quantidade de leads, este prodecimento poderá levar mais 5 minutos

- API : outputCSV

    Compila os registros exportados em arquivo CSV

#### Campos

[](#campos)

colunatipodescriçãonamestringnomemailstringemailphonestringtelefoneoriginstringtag ou identificador do eventoufstringestado (ex: SP)- API : logout

    Fecha a sessão do usuário

### Atualização regular.

[](#atualização-regular)

@Release 1.7 (12/2017, stable)

Nota da versão: API Experimental

"VII billion Alicubi inter populum, ut semper aliquis est magis quam vobis" $P

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/eaccd17a2536102122930d342c2e6459f0cb7514edb246d138a1a7e5e5e9aaf9?d=identicon)[patrickotto](/maintainers/patrickotto)

---

Top Contributors

[![phpenterprise](https://avatars.githubusercontent.com/u/1564781?v=4)](https://github.com/phpenterprise "phpenterprise (56 commits)")

---

Tags

api-clientphp56rd-station

### Embed Badge

![Health badge](/badges/phpenterprise-dev-rd-station-api/health.svg)

```
[![Health](https://phpackages.com/badges/phpenterprise-dev-rd-station-api/health.svg)](https://phpackages.com/packages/phpenterprise-dev-rd-station-api)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
