티스토리 글쓰기 API

1 API 정보[ | ]

1.1 발신[ | ]

파라미터
access_token 액세스 토큰
targetUrl 티스토리 서브도메인(예: xxx.tistory.com 중 xxx) 또는 2차 도메인(예: example.com).
title 제목
visibility 비공개=0, 보호=1, 공개=2, 발행=3
published 발행시각(UNIX_TIMESTAMP). 미래시점이면 발행 예약
category 카테고리 번호
content 내용
slogan 문자 주소
tag 태그(콤마로 구분)
리눅스에서 발신 명령어 예시
curl -F 'access_token=abcdefguhjklmnopqrstuvw' \
-F 'targetUrl=sampleUserName' \
-F 'title=sampleTitle' \
-F 'content=sampleContent' \
https://www.tistory.com/apis/post/write

1.2 수신[ | ]

파라미터
status 응답코드. 200이면 성공
postId 생성된 글의 번호
url 전체 URL
수신 내용 예시
<?xml version="1.0" encoding="utf-8"?>
<tistory>
<status>200</status>
<postId>74</postId>
<url>http://sampleUrl.tistory.com/74</url>
</tistory>

2 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}