페이지 트리

Freshdesk와 AI 챗봇 기반 고객지원 웨비나

안녕하세요. 카카오, 라인 등 다양한 채널로 고객문의를 통합하고 관리하는 Freshdesk와 AI 챗봇을 소개 웨비나를 진행합니다.
2024년 4월 18일 (목) 16:00 팀즈웨비나


목적

Atlassian의 REST API 호출 할 때 코드에 ID/Password를 드러내고 싶지 않음

예) CURL 또는 script을 통해 rest API 접근

해결책

ID/Pasword를 base64로 생성하여 HTTP header에 적용

CURL 사용 예)
$ curl -D- -X GET -H "Authorization: Basic base64String" -H "Content-Type: application/json" "http://jira.almdemo.curvc.com/rest/api/latest/hello"

Base64 생성 방법:

Linux terminal 환경:
echo -n <userID>:<password> | openssl base64
Powershell 환경:
$ENCODED = [Convert]::ToBase64String([Text.Encoding]::Unicode.GetBytes('<userID>:<password>'))
Write-Output $ENCODED
  • 레이블 없음