open-index/open-npm huggingface dataset:
npm package: @fugood/mybigday-media-resource-api-redux
Description: Redux wrapper for MyBigDay Media Resource API
Author: Jhen
Latest version: 0.4.1

# mybigday-media-resource-api-redux

> Redux wrapper for MyBigDay Media Resource API

## Installation

```bash
$ npm i --save redux
$ npm i --save @fugood/mybigday-media-resource-api-redux
```

## Usage

```js
// get actions
import {
  FileActions,
  PhotoActions,
  VideoActions,
  BoxActions,
  UploadPageActions,
} from '@fugood/mybigday-media-resource-api-redux/lib/actions';

// get HttpClient class
import { HttpClient } from '@fugood/mybigday-media-resource-api-redux/lib/utils';
const defaultReqHeaders = {
  Authorization: 'Bearer <access_token>',
};
const client = new HttpClient('<server url here>', defaultReqHeaders);

// get middlewares
import { APICall } from '@fugood/mybigday-media-resource-api-redux/lib/middlewares';
// Make API middlewares
const middleware = APICall(client);  // HttpClient

// get reducers
import {
  file,
  photo,
  video,
  box,
  uploadPage,
} from '@fugood/mybigday-media-resource-api-redux/lib/reducers';
```

#### Change client defaultReqHeaders

```js
import { HTTPClientActions } from '@fugood/mybigday-media-resource-api-redux/lib/actions';

const { setClientDefaultReqHeaders } = HTTPClientActions;

store.dispatch(setClientDefaultReqHeaders({
  Authorization: 'Bearer <new access_token>',
}));
```
npm package: @fugood/mybigday-media-resource-sync-client
Description: ## Prerequisite
Author: Jhen
Latest version: 0.3.0

# Sync Client

## Prerequisite

* Node.js ^8.0
* AWS CLI (`pip install awscli`)

## Installation

```bash
$ npm i --save @fugood/mybigday-media-resource-sync-client
```

## Usage

See the [API documentation](docs/API.md).

## Platform

* [Node.js](src/node.js)
* [React Native](src/react-native.js) (Not implement yet)

See the [docs/PlatformUtils.md](docs/PlatformUtils.md) for more information.

## Development

```bash
$ npm run dev
```

## Test

```bash
$ npm test
```