1.1.0 • Published 6 years ago

imgur-module v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

NPM version GitHub license Coverage Status GitHub license

imgur-module (imgur 圖片上傳)

Module Usage

Installation

Install the project dependencies.You can use npm or yarn(recommended) for dependency management。

## npm
npm install imgur-module --save

## yarn 
yarn add imgur-module

Usage

You can through this website to get your project's client id.

https://api.imgur.com/oauth2/addclient

// Requiring the module
const imgur = require('imgur-module');

// intilize client id
imgur.setClientId('Your Client Id');

// uploading URL image
imgur.uploadImgur('Your Image URL').then((result) => {
  console.log(result);
});

License

MIT

1.1.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago