# betfair.js

> Betfair api wrapper

Latest version **0.3.2** (published 2018-01-20) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install betfair.js
pnpm add betfair.js
yarn add betfair.js
bun add betfair.js
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.3.2 |
| Published | 2018-01-20 |
| First published | 2017-08-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ayinla Abdulsalam |
| Maintainers | ayinla |

## Links

- npm: https://www.npmjs.com/package/betfair.js
- Repository: https://github.com/ayinlaaji/betfair
- Issues: https://github.com/ayinlaaji/betfair/issues
- npm.io page: https://npm.io/package/betfair.js

## Recent versions

- 0.3.2 (latest) — 2018-01-20
- 0.3.1 — 2018-01-20
- 0.3.0 — 2017-12-16
- 0.0.0 — 2017-08-10

## README

# Do not use yet

# [Betfair](https://betfair.com/) &middot; [![Build Status](https://travis-ci.org/ayinlaaji/betfair.svg?branch=master)](https://travis-ci.org/ayinlaaji/betfair)

Promise based betfair api wrapper

[Visit betting docs for betting api documentation](http://docs.developer.betfair.com/docs/display/1smk3cen4v3lu3yomq5qye0ni/Betting+Operations).
[Visit account docs account api documentation](http://docs.developer.betfair.com/docs/display/1smk3cen4v3lu3yomq5qye0ni/Accounts+Operations).

#Usage 1
```
   var login = require('betfair/login');

   var username = "test";
   var password = "test";
   var apiKey = '323r234sdfsf';
   var apiToken = '';

   var data = {
     username: username, 
     password: password
   }
    
    var req =  login(data)(apiKey);

    req.then(res=> { 
      apiToken = res.token;
    }).catch(err=> {
                       
   });

   
   var params = { filter: {} };
   var req = listEventTypes(params)(apiKey, apiToken);

   req.then(res=> {

   }).catch(err=> {
            
   });

```

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