최근 검색
최근 검색 없음

KAZUYUKI NITANAI
가입한 날짜: 2025년 1월 27일
·
마지막 활동: 2025년 2월 03일
팔로잉
0
팔로워
0
총 활동 수
3
투표 수
0
가입 플랜
1
활동 개요
배지
문서
게시물
커뮤니티 댓글
문서 댓글
활동 개요
님의 최근 활동 KAZUYUKI NITANAI
KAZUYUKI NITANAI님이 에 댓글을 입력함
Hi James
I ran cURL and it ran without any problems.
This indicated a problem with the gas, so I checked again,
'contentType': 'application/json',
was incorrect and
'Content-Type': 'application/json',
was the correct way to describe it.
Because of this mistake, subsequent payloads could not recognize it.
The problem has been resolved. Thank you for your cooperation.
댓글 보기 · 2025년 2월 03일에 게시됨 · KAZUYUKI NITANAI
0
팔로워
0
투표 수
0
댓글
KAZUYUKI NITANAI님이 에 게시물을 만듦
Hello everyone,
As you read the following, I am trying to create something in gas that will create articles in the Help Center.
It says that required fields are missing, but what is missing?
Referring URL
https://developer.zendesk.com/api-reference/help_center/help-center-api/articles/
See Create Article
Created program (gas)
*How to execute the API
function zendeskPostArticle() {
var url = 'https://xxxxxxxxx.zendesk.com/api/v2/help_center/ja/sections/**********/articles';
const TOKEN = '********';
const EMAIL = '********';
var postjson = {
"article": {
"body": "Use a tripod",
"locale": "ja",
"permission_group_id": ******,
"title": "Taking photos in low light",
"user_segment_id": *****
},
"notify_subscribers": false
}
var options = {
'method': 'POST',
'headers': {
'Authorization': "Basic " + Utilities.base64Encode(Utilities.newBlob(EMAIL + '/token:' + TOKEN).getBytes()),
'contentType': 'application/json',
'Accept': 'application/json'
},
'payload': JSON.stringify(postjson)
};
var response = UrlFetchApp.fetch(url, options);
var json = JSON.parse(response.getContentText("UTF-8"));
}
The error that occurred:
Exception: Request failed for https://xxxxxxxxx.zendesk.com returned code 400. Truncated server response: Required parameter missing: article
thank you
2025년 1월 27일에 편집됨 · KAZUYUKI NITANAI
0
팔로워
2
투표 수
2
댓글