# flurry

> Flurry API client for Node.js and Q

Latest version **0.1.0** (published 2012-10-08) · BSD license · 0 weekly downloads

## Install

```sh
npm install flurry
pnpm add flurry
yarn add flurry
bun add flurry
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2012-10-08 |
| First published | 2012-10-08 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Tom Robinson |
| Maintainers | tlrobinson |
| Keywords | flurry, q |

## Links

- npm: https://www.npmjs.com/package/flurry
- Repository: https://github.com/tlrobinson/node-flurry
- npm.io page: https://npm.io/package/flurry

## Dependencies (3)

- [q](https://npm.io/package/q.md) ~0.8.9
- [jack2](https://npm.io/package/jack2.md) ~0.0.0
- [q-http](https://npm.io/package/q-http.md) ~0.1.14

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2012-10-08

## README

# Flurry API client for Node.js and Q

This library supports both Node-style callbacks and [Q promises](https://github.com/kriskowal/q).

If the callback argument is omitted the method will return a promise.

e.x. This...

    Q.when(flurry.getAllApplications(), function(object) {
        console.log(object.applications);
    });

is equivalent to this...

    flurry.getAllApplications(function(err, object) {
        console.log(object.applications);
    });

except with all the awesomeness promises provide, of course!

## API

### FLURRY.createClient(apiAccessCode:String[, options:Object])

Returns a Flurry client object.

By default the client is rate limited to 1 request per second to avoid hitting Flurry's rate limits. Pass in `0` (or another value, in milliseconds) for the `rateLimit` option to disable rate limiting.

### client.getAllApplications([callback:Function])

    {
        companyName: String
        applications: [{
            name: String
            apiKey: String
            platform: String
            createdDate: Date
        }]
        version: String
        generatedDate: Date
    }

http://support.flurry.com/index.php?title=API/Code/AppInfo

### client.getApplication(apiKey:String[, callback:Function])

    {
        name: String
        platform: String
        createdDate: Date
        category: String
        versions: [{
            name: String,
            createdDate: Date
        }]
        version: String
        generatedDate: Date
    }

http://support.flurry.com/index.php?title=API/Code/AppInfo

### client.getAppMetrics(apiKey:String, metric:String, start:Date, end:Date[, callback:Function])

    {
        metric: String
        startDate: Date
        endDate: Date
        days: [{
            value: Number,
            date: Date
        }]
        version: String
        generatedDate: Date
    }

http://support.flurry.com/index.php?title=API/Code

### client.getEventMetrics(apiKey:String, event:String, start:Date, end:Date[, callback:Function])

    {
        type: 'Event'
        eventName: String
        startDate: Date
        endDate: Date
        days: [{
            date: Date
            uniqueUsers: Number
            totalSessions: Number
            totalCount: Number
            parameters: Object
        }]
        version: String
        generatedDate: Date
    }

http://support.flurry.com/index.php?title=API/Code/EventMetrics

### client.getEventMetricsSummary(apiKey:String, start:Date, end:Date[, callback:Function])

    {
        type: 'Summary'
        startDate: Date
        endDate: Date
        events: [{
            eventName: String,
            usersLastWeek: Number
            usersLastMonth: Number
            usersLastDay: Number
            totalSessions: Number
            totalCount: Number
            avgUsersLastWeek: Number
            avgUsersLastMonth: Number
            avgUsersLastDay: Number
        }]
        version: String
        generatedDate: Date
    }

http://support.flurry.com/index.php?title=API/Code/EventMetrics

---
_Source: https://npm.io/package/flurry · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
