Core class for danal API.
Kind: global class
Param | Type |
---|---|
endpoint | string |
opts | object |
Example
var api = new API('https://...', {...})
return api endpiont
Kind: instance method of API
request
Kind: instance method of API
Param | Type | Description |
---|---|---|
opts | object | |
opts.method | object |
|
opts.data | object | |
opts.headers | object | |
cb | function | cb(err, data) |
본인인증서비스 APIs
Kind: global class
Param | Type | Description |
---|---|---|
opts | objects | |
opts.client_id | string | |
opts.client_secret | string | |
opts.redirect_uri | string | |
[opts.charset] | string | defaults: |
[opts.agelimit] | string |
uaS.api : API
api instance
Kind: instance property of UAS
request tid
Kind: instance method of UAS
Param | Type |
---|---|
opts.userid | string |
opts.token | string |
[opts.redirect_uri] | string |
cb | function |
final step authentication - Verify authentication information using an tid
value
Kind: instance method of UAS
Param | Type | Description |
---|---|---|
opts | object | |
opts.tid | string | |
[opts.idenoption] | number | return value type - 0: |
[opts.token] | string | token string |
cb | function |
return middleware for redirect
Kind: instance method of UAS
Returns: function
- express middleware
Param | Type | Description |
---|---|---|
[name] | string | key name of res.locals for the data transfer. (default: |
[redirect_uri] | string | landing url for uas |
define endpoint
본인인증서비스
Kind: static property of ENDPOINT
NAMES
Kind: global variable
- NAMES :
object
- .code :
string
- .message :
string
- .txtype :
string
- .client_id :
string
- .client_secret :
string
- .service :
string
- .authtype :
string
- .redirect_uri :
string
- .userid :
string
- .token :
string
- .charset :
string
- .agelimit :
string
- .cancel_uri :
string
- .use_ci :
string
- .ci_url :
string
- .bg_color :
string
- .carrier :
string
- .phonenum :
string
- .yearofbirth :
string
- .passvalue :
string
- .tid :
string
- .confirmoption :
string
- .idenoption :
string
- .name :
string
- .ci :
string
- .di :
string
- .iden :
string
- .dateofbirth :
string
- .gender :
string
- .code :
RETURNCODE
결과 코드
Kind: static property of NAMES
RETURNMSG
결과 메시지`
Kind: static property of NAMES
TXTYPE
Kind: static property of NAMES
CPID
가맹점 ID
Kind: static property of NAMES
CPPWD
가맹점 PWD
Kind: static property of NAMES
SERVICE
서비스 구분
Kind: static property of NAMES
AUTHTYPE
인증 TYPE
Kind: static property of NAMES
TARGETURL
가맹점 인증 완료 페이지 URL
Kind: static property of NAMES
USERID
사용자 ID
Kind: static property of NAMES
ORDERID
가맹점 주문번호
Kind: static property of NAMES
CHARSET
: UTF-8 (default), EUC-KR
Kind: static property of NAMES
AGELIMIT
서비스 사용 제한 나이 설정`
Kind: static property of NAMES
BackURL
에러 발생 및 취소시 이동할 페이지 URL
Kind: static property of NAMES
IsUseCI
가맹점 C.I 사용 여부 (Y/N)
Kind: static property of NAMES
CIURL
가맹점 C.I 이미지 URL - basic: 115x47, mobile: 77x29
Kind: static property of NAMES
BgColor
화면 color 설정시 사용
Kind: static property of NAMES
IsCarrier
통신사 정보 (SKT
, KTF
, LGT
, MVNO
). 인증화면에 통신사 고정
Kind: static property of NAMES
IsDstAddr
고객전화번호 (-
로 구분됨, 010-1111-1111). 인증화면에 전화번호 고정
Kind: static property of NAMES
YearOfBirth
고객 생년 (1982). 인증화면에 년도 정보 고정
Kind: static property of NAMES
ByPassValue
추가 전달이 필요한 값
Kind: static property of NAMES
TID
거래 번호
Kind: static property of NAMES
CONFIRMOPTION
CPID
, ORDERID
확인 여부 (0: 미확인, default, 1: 확인)
Kind: static property of NAMES
IDENOPTION
결과 타입 설정 (0: iden
반환, 1: dateofbirth
, gender
필드 리턴)
Kind: static property of NAMES
NAME
사용자 이름
Kind: static property of NAMES
CI
인증 고유키
Kind: static property of NAMES
DI
SITE 연계 정보
Kind: static property of NAMES
IDEN
사용자 생년월일, 성별 (ex: 1401011), idenoption
이 0일 경우
Kind: static property of NAMES
DOB
사용자 생년월일 (ex: 20140101), idenoption
이 1일 경우
Kind: static property of NAMES
SEX
사용자 성별 (ex: 1), idenoption
이 1인 경우
Kind: static property of NAMES