Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tak-bro/ts-iamport
REST API client for I'mport; written by Typescript
https://github.com/tak-bro/ts-iamport
iamport import node node-iamporter npm typescript
Last synced: 11 days ago
JSON representation
REST API client for I'mport; written by Typescript
- Host: GitHub
- URL: https://github.com/tak-bro/ts-iamport
- Owner: tak-bro
- Created: 2018-01-23T04:44:34.000Z (almost 7 years ago)
- Default Branch: develop
- Last Pushed: 2019-09-17T04:12:40.000Z (about 5 years ago)
- Last Synced: 2024-10-11T18:14:51.305Z (27 days ago)
- Topics: iamport, import, node, node-iamporter, npm, typescript
- Language: TypeScript
- Homepage:
- Size: 20.5 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ts-iamport
- [박병진](https://github.com/posquit0)님께서 작성하신 [node-iamporter](https://github.com/posquit0/node-iamporter)를 TypeScript로 간단히 변경한 프로젝트입니다.
- 기존 node-iamporter 프로젝트에서 debug 부분을 삭제하였습니다.
- 수면브랜드 [삼분의일](https://www.3boon1.com) 웹사이트 구축을 위해 만들었습니다.### Installation
```
$ npm install --save ts-iamport
```### Usage
- 상세 사용방법은 [node-iamporter](https://github.com/posquit0/node-iamporter#usage)를 참고 바랍니다.
```javascript
import { Iamport } from 'ts-iamport';const IMP_API_KEY = 'your-iamport-apikey';
const IMP_SECRET_KEY = 'your-iamport-secret-key';
const iamport = new Iamport(IMP_API_KEY, IMP_SECRET_KEY);static getToken$ = () => {
const token$ = of(iamport.getToken());
return token$;
}
```