filtr-apis-frontline
==============

- https://apis.filtr.com
- https://apis-staging.filtr.com

### Prerequisites
- [Node.js 7.4.0](https://nodejs.org)
- [yarn >=0.19.1](https://yarnpkg.com)
- [Redis >=2.6.12](https://redis.io)

### Setup
```
git clone https://github.com/filtr/filtr-apis-frontline.git
cd filtr-apis-frontline
yarn install
yarn run dev
```

### `.env` file
Create a file called `.env` in the project root directory and fill in values:
```
NODE_ENV=development
PORT=
REDIS_HOST=
REDIS_PORT=
REDIS_USERNAME=
REDIS_PASSWORD=
ADMINAPI_KEY=
```

### Basic auth credentials in development mode
Username: dev  
Password: www

### Endpoints
```
GET /_beta/spotify-playlists-contains-track?trackID=3ujORpm8Hf7QWEtfqSAZL8&marketCode=gb&limit=100&offset=0
GET /_beta/spotify-search?query=hot+50&marketCode=gb
GET /_beta/spotify-playlists-by-account?accountID=filtr&limit=100&offset=0
```
