카테고리:그누보드 그누보드 티스토리 게시물 반자동포스팅
페이지 정보
작성자 csunny 댓글 0건 조회 1,429회 작성일 21-03-20 10:33본문
1.티스토리 api 등록및 키값 가져오기[오픈 API(Open Application Programming Interface, Open API, 공개 API)]
서비스 URL 입력
서비스 URL 도메인 주소 입력하실 때 www 는 포함하면 안 됩니다.
Callback URL 입력
설치된 그누보드 루트에 억세스 토큰 발급받을 폴더생성후 php 파일생성
입력 예제
http://example.com/plugin/oauth/callback.php
http://www.example.com/plugin/oauth/callback.php
Callback 주소는 www가 있고 없고를 구분합니다. 둘 다 사용한다면 모두 입력해놓으세요.
Mobile 웹도 선택했다면 동일하게 입력
앱관리탭
2.access token발급받기
1)그누보드 홈페이지 루트에 임의콜백폴더 생성
2)아래 2개 파일 업로드
index.php
oauth_callback.php
4)http://bigdata2000.com/임의콜백폴더/index.php(본인홈페이지 접속)
접속하면
4.그누보드 자동포스팅(반자동)
---------------------------------------------
1.티스토리 전달값(여기부터참조,단 빨간부분만필요 )
POST https://www.tistory.com/apis/post/write?
access_token={access-token}
&output={output-type}
&blogName={blog-name}
&title={title}
&content={content}
&visibility={visibility}
&category={category-id}
&published={published}
&slogan={slogan}
&tag={tag}
&acceptComment={acceptComment}
&password={password}
기본 매개변수를 제외한 매개변수는 다음과 같습니다.
blogName: Blog Name (필수):티스토리 계정명 ( ex : idchin.tistory.com 빨간색 부분)
title: 글 제목 (필수)
content: 글 내용
visibility: 발행상태 (0: 비공개 - 기본값, 1: 보호, 3: 발행)
category: 카테고리 아이디 (기본값: 0):(ex : idchin.tistory.com/10?category=11111) 빨간색 부분
published: 발행시간 (TIMESTAMP 이며 미래의 시간을 넣을 경우 예약. 기본값: 현재시간)
slogan: 문자 주소
tag: 태그 (',' 로 구분)
acceptComment: 댓글 허용 (0, 1 - 기본값)
password: 보호글 비밀번호
응답
postId: 글 번호
url: 발행 주소
응답 예
{
"tistory":{
"status":"200",
"postId":"10",
"url":"http://sampleUrl.tistory.com/10"
}
}
여기까지참조 끝
-------------------------------------------------------
그누보드 게시판스킨 링크
참고싸이트.https://sir.kr/g5_skin/18891
방식:
write.skin.php
wr_4 글 보내기 체크와
wr_5 티스토리 카테고리 번호
wr_6 tag입력
스킨 폴더에 추가된 파일
write_update.skin.php
문제점:이미지 업로드 안됨 수동수정
댓글목록
등록된 댓글이 없습니다.