Skip to content
Discussion options

You must be logged in to vote

안녕하세요, 솔라피 기술지원팀입니다.
Node.js에 대한 팩스 발송 연동 예제는 아래 코드를 참고 해 주시길 바라겠습니다.

const messageService = new SolapiMessageService(
  'your_api_key',
  'your_api_secret_key',
);
messageService
  .uploadFile(
    path.join('이미지 경로, nodejs path모듈을 미리 불러왔다는 전제'),
    'FAX',
  )
  .then(res => res.fileId)
  .then(fileId => {
    messageService
      .send({
        to: '팩스 수신이 가능한 수신번호(예) 029302266)',
        from: '등록하신 발신번호',
        faxOptions: {
          fileIds: [fileId],
        },
      })
      .then(console.log);
  });

감사합니다.

Replies: 1 comment 14 replies

Comment options

You must be logged in to vote
14 replies
@Palbahngmiyine
Comment options

@hansoo-dev
Comment options

@Palbahngmiyine
Comment options

@hansoo-dev
Comment options

@Palbahngmiyine
Comment options

Answer selected by Palbahngmiyine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed Node.js relevants on Node.js
2 participants