템플릿 정보 조회
Request
GET https://api.solapi.com/kakao/v1/templates/:templateId
템플릿의 아이디로 템플릿 정보를 조회합니다.
Authorization 인증 필요 [?]
계정 권한
회원 권한
계정 상태
회원 상태
계정 인증
kakao:read
role-kakao:read
Path Parameters
Name
Description
:templateId
템플릿 고유 아이디
Samples
getTemplate.spec.js
Sample Request
http://api.solapi.com/kakao/v1/templates/TP01ID210129012740058aSLeNwTf4ej
Sample Response
{
"isHidden": false,
"accountId": "12925149",
"templateId": "TP01ID210129012740058aSLeNwTf4ej",
"name": "A10",
"pfId": "PF01ID210129012740058VzfrqtqVFPA",
"content": "testMessage",
"codes": [
{
"status": "APPROVED",
"code": "63igj39d3",
"service": "biz",
"comments": []
}
],
"dateCreated": "2021-01-29T01:27:40.058Z",
"dateUpdated": "2021-01-29T01:27:40.058Z",
"buttons": []
}
Sample Code
var request = require('request');
var options = {
headers: {
Authorization:
'HMAC-SHA256 apiKey=NCSAYU7YDBXYORXC, date=2019-07-01T00:41:48Z, salt=jqsba2jxjnrjor, signature=1779eac71a24cbeeadfa7263cb84b7ea0af1714f5c0270aa30ffd34600e363b4'
},
method: 'GET',
json: true,
url:
'http://api.solapi.com/kakao/v1/templates/TP01ID210129012740058aSLeNwTf4ej'
};
request(options, function(error, response, body) {
if (error) throw error;
console.log('result :', body);
});
문서 생성일 : 2021-01-29
Last updated
Was this helpful?