Skip to content

v1.0.5

Compare
Choose a tag to compare
@hubtwork hubtwork released this 20 Apr 02:49
· 19 commits to master since this release

NCPClient will support service's unique error types

  • NCPClient's request module, ApiRequest can handle service's unique errors now

    service's unique error means almost parameter validation.

    If given parameter is incorrect with NCP-defined format, It will return ApiClientResponse with error and request won't send.

[ SENS - SMS service ] SearchMessageRequest / SearchMessageResult now supported

  • Using SendSMS API , you can get requestId of request from response

  • SearchMessageRequest with requestId from SendSMS API's response will return the detail delivery request

    const { isSuccess, data } = await smsService.searchMessageRequest('requestId')
  • SearchMessageResponse with messageId from SearchMessageRequest API's response will return the detail delivery results

    const { isSuccess, data } = await smsService.searchMessageResult('messageId')

Dependency changed

  • crypto changed to built-in module, so deprecated in dependency