채널
WordPress
에이전트가 업리카로 직접 설치한 워드프레스 사이트에 올리는 방법. 애플리케이션 비밀번호, HTML 로 나가는 마크다운, 사진 · 태그 · 초안 · 휴지통.
한눈에
| 이름 | 타입 | 설명 |
|---|---|---|
characters | text | 30,000 |
images | media | up to 40 per post; more than that and the first 40 go out with a warning |
carousel | media | no carousel; images sit in the post one after another |
video | media | not supported |
text alone | media | allowed |
posts / 24h | limit | 1,000 |
deletes / 24h | limit | WordPress through the REST API, with no documented daily cap; a delete moves the post to the trash |
status | state | live |
이 숫자는 서버가 검증에 쓰는 파일에서 그대로 옵니다. 제목은 필수이고 코드포인트로 셉니다. 사진만 올라가고, 카테고리는 사이트 기본값이 붙습니다.
본문은 어떻게 워드프레스에 가나요?
마크다운을 HTML 로 바꿔 보냅니다. 사진은 한 줄에 하나씩  으로 넣고, 업리카가 사이트의 미디어 라이브러리에 올립니다. 본문의 원시 HTML 은 wordpress_html_not_supported 로, @group 이나 {.small} 같은 네이버 블로그 문법은 wordpress_directive_not_supported 로 거절합니다. 같은 본문을 한 글에서 Ghost 와 워드프레스에 같이 보낼 수 있습니다.
첫 글은 어떻게 올리나요?
마크다운 본문과 options.wordpress.title 로 publish 를 부릅니다. 워드프레스 관리 화면에 초안으로 두려면 options.wordpress.draftOnly 를 더합니다.
curl -X POST https://api.uplika.com/v1/posts \
-H "Authorization: Bearer $UPLIKA_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "Intro.\n\n",
"accountIds": ["conn_..."],
"options": { "wordpress": { "title": "Release notes", "tags": ["news"] } }
}'options.wordpress 가 받는 것
| 이름 | 타입 | 설명 |
|---|---|---|
title필수 | string | Required. The post title, up to 255 characters. |
tags | string[] | Tag names, up to 100; WordPress creates new ones. Categories are left to the site's default. Ignored on an edit, where the current tags stay. |
featureImageMediaId | string | Media id of a JPEG, PNG, GIF or WebP for the featured image; Uplika uploads a copy to the site. Ignored on an edit, where the current featured image stays. |
draftOnly | boolean | Save it as a WordPress draft instead of publishing; the permalink is then its WordPress editor page. Not the same as draft on the post, which keeps it on Uplika. |
content | string | Text for this channel only. When set it replaces the shared content for this channel, and the length and media checks use it. Leave it out to use the shared content. |
서버가 검증에 쓰는 스키마에서 그대로 만들었습니다. GET /v1/platforms 도 같은 것을 돌려줍니다.
안 되는 것은?
카테고리, 페이지, 커스텀 글 종류, SEO 플러그인 칸, 요약, 슬러그, 댓글, 조회수, 영상은 내지 않습니다. 워드프레스 자체 예약은 쓰지 않고, scheduledAt 글은 업리카 서버가 그 시각에 보냅니다. update_post 는 제목과 본문을 보낸 것으로 바꾸고 워드프레스 편집기에서 누가 고친 것도 덮습니다. 태그와 대표 이미지는 바뀌지 않습니다.
자주 묻는 것
delete_post 는 글을 아주 지우나요?
아닙니다. 사이트의 휴지통으로 옮기고, 워드프레스가 휴지통을 비우기 전까지 관리자가 되살릴 수 있습니다. 휴지통을 끈 사이트에서는 아주 지워지고, 응답의 note 가 그렇게 알려 줍니다.
연결하면 정보가 받아들여지지 않았다고 나와요
셋을 순서대로 보세요. 사용자명이 로그인할 때 쓰는 이름이나 이메일인지, 비밀번호가 로그인 비밀번호가 아니라 애플리케이션 비밀번호인지, 둘 다 맞으면 호스트가 요청의 Authorization 머리글을 지우는지입니다.
글쓴이는 누구로 나오나요?
연결한 워드프레스 사용자입니다.