# node-criteo-api

> Node Criteo Api

Latest version **0.0.6** (published 2017-01-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-criteo-api
pnpm add node-criteo-api
yarn add node-criteo-api
bun add node-criteo-api
```

## 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.0.6 |
| Published | 2017-01-16 |
| First published | 2016-04-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Chris Alvares |
| Maintainers | agencypmg |
| Keywords | Criteo |

## Links

- npm: https://www.npmjs.com/package/node-criteo-api
- Repository: https://github.com/AgencyPMG/node-criteo-api
- Homepage: https://github.com/AgencyPMG/node-criteo-api#readme
- Issues: https://github.com/AgencyPMG/node-criteo-api/issues
- npm.io page: https://npm.io/package/node-criteo-api

## Dependencies (2)

- [soap](https://npm.io/package/soap.md) ^0.13.0
- [underscore](https://npm.io/package/underscore.md) ^1.8.3

## Recent versions

- 0.0.6 (latest) — 2017-01-16
- 0.0.5 — 2016-08-05
- 0.0.4 — 2016-06-23
- 0.0.3 — 2016-04-27
- 0.0.2 — 2016-04-12

## README

# Criteo Node SDK
Node Api for Criteo
[![Build Status](https://travis-ci.org/AgencyPMG/node-criteo-api.svg?branch=master)](https://travis-ci.org/AgencyPMG/node-criteo-api) [![Coverage Status](https://coveralls.io/repos/github/AgencyPMG/node-criteo-api/badge.svg?branch=master)](https://coveralls.io/github/AgencyPMG/node-criteo-api?branch=master)

## Installation
```
npm install node-criteo-api
```

## Usage
You will need a username/password + token to use the api
```js
var Criteo = require('node-criteo-api');
var client = new Criteo(username, password, token);


client.getCampaigns({campaignStatus: 'RUNNING'}, (error, campaigns) => {
    console.log(error, campaigns);
});
```

## Options
You can also specify options as a fourth parameter
```js
var client = new Criteo(username, password, token, {
    source: 'node-criteo-api', //the "source" parameter, the criteo "user agent"
    version: 'v201305' //the version of the api
});
```

## Testing
To run the tests, you need to set some environmental variables. Only about
10% of the tests will run without the following environmental variables
```
CRITEO_API_USERNAME,
CRITEO_API_PASSWORD,
CRITEO_API_TOKEN
```

then run

```
npm test
```

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