1.0.0 • Published 5 years ago
bootpay-server-client v1.0.0
1.0.0-beta2 ( next ) - Nightly Version
1.0.0
- typescript로 코딩이 되어있습니다
- d.ts 파일이 첨부되어 typescript로도 코딩이 가능합니다.
샘플 코드
NPM으로 다운 받은 경우
const RestClient = require('bootpay-rest-client')
RestClient.setConfig(
'59bfc738e13f337dbd6ca48a',
'pDc0NwlkEX3aSaHTp/PPL/i8vn5E/CqRChgyEp/gHD0=',
'development'
)
RestClient.getAccessToken().then(
function(response) {
console.log(response)
}, function(e) {
console.log(e)
}
)
});
### 더 자세한 정보는 [Docs](https://docs.bootpay.co.kr/api/validate?languageCurrentIndex=2)를 참조해주세요.
github으로 바로 다운 받은 경우
const RestClient = require('./dist/bootpay')
RestClient.setConfig(
'59bfc738e13f337dbd6ca48a',
'pDc0NwlkEX3aSaHTp/PPL/i8vn5E/CqRChgyEp/gHD0=',
'development'
)
RestClient.getAccessToken().then(
function(response) {
console.log(response)
}, function(e) {
console.log(e)
}
)
});