Documentation ยถ
Index ยถ
- type Tistory
- func (t *Tistory) AttachPost(filePath string) (map[string]interface{}, error)
- func (t *Tistory) CategoryList() (map[string]interface{}, error)
- func (t *Tistory) DeleteComment(option map[string]interface{}) (map[string]interface{}, error)
- func (t *Tistory) GetAccessToken() (string, error)
- func (t *Tistory) GetAuthorizationCode(id, password string) (string, error)
- func (t *Tistory) GetBlogInfo() (map[string]interface{}, error)
- func (t *Tistory) GetCommentList(postId int) (map[string]interface{}, error)
- func (t *Tistory) GetPost(postId int) (map[string]interface{}, error)
- func (t *Tistory) GetPostList(pageNumber int) (map[string]interface{}, error)
- func (t *Tistory) GetRecentCommentList(page, count int) (map[string]interface{}, error)
- func (t *Tistory) ModifyComment(option map[string]interface{}) (map[string]interface{}, error)
- func (t *Tistory) ModifyPost(option map[string]interface{}) (map[string]interface{}, error)
- func (t *Tistory) WriteComment(option map[string]interface{}) (map[string]interface{}, error)
- func (t *Tistory) WritePost(option map[string]interface{}) (map[string]interface{}, error)
Constants ยถ
This section is empty.
Variables ยถ
This section is empty.
Functions ยถ
This section is empty.
Types ยถ
type Tistory ยถ
type Tistory struct { BlogURL string BlogName string ClientId string ClientSecret string AccessToken string AuthenticationURL string RedirectAuthURL string AuthenticationCode string }
func NewTistory ยถ
func (*Tistory) AttachPost ยถ
AttachPost ํ์ผ ์ฒจ๋ถ blogName: Blog Name uploadedfile: ์ ๋ก๋ํ ํ์ผ (multipart/form-data) https://tistory.github.io/document-tistory-apis/apis/v1/post/attach.html
func (*Tistory) CategoryList ยถ
CategoryList ์นดํ ๊ณ ๋ฆฌ ๋ชฉ๋ก id: ์นดํ ๊ณ ๋ฆฌ ID name: ์นดํ ๊ณ ๋ฆฌ ์ด๋ฆ parent: ๋ถ๋ชจ ์นดํ ๊ณ ๋ฆฌ ID label: ๋ถ๋ชจ ์นดํ ๊ณ ๋ฆฌ๋ฅผ ํฌํจํ ์ ์ฒด ์ด๋ฆ ('/'๋ก ๊ตฌ๋ถ) entries: ์นดํ ๊ณ ๋ฆฌ๋ด ๊ธ ์
func (*Tistory) DeleteComment ยถ
DeleteComment ๋๊ธ ์ญ์ blogName: Blog Name (ํ์) postId: ๊ธ ID (ํ์) commentId: ๋๊ธ ID (ํ์) https://tistory.github.io/document-tistory-apis/apis/v1/comment/delete.html
func (*Tistory) GetAccessToken ยถ
GetAccessToken https://tistory.github.io/document-tistory-apis/auth/authorization_code.html
func (*Tistory) GetAuthorizationCode ยถ
Login & Get AuthorizationCode https://tistory.github.io/document-tistory-apis/auth/authorization_code.html
func (*Tistory) GetBlogInfo ยถ
GetBlogInfo ๋ธ๋ก๊ทธ ์ ๋ณด access_token: ๋ฐ๊ธ๋ฐ์ access_token output: ์ถ๋ ฅ๋ฐฉ์ https://tistory.github.io/document-tistory-apis/apis/v1/blog/list.html
func (*Tistory) GetCommentList ยถ
GetCommentList ๋๊ธ ๋ชฉ๋ก ๊ฐ์ ธ์ค๊ธฐ blogName: Blog Name postId: ๊ธ ๋ฒํธ (ID) https://tistory.github.io/document-tistory-apis/apis/v1/comment/list.html
func (*Tistory) GetPost ยถ
GetPost ๊ธ ์ฝ๊ธฐ blogName: Blog Name (ํ์) postId: ๊ธ ๋ฒํธ (ํ์) https://tistory.github.io/document-tistory-apis/apis/v1/post/read.html
func (*Tistory) GetPostList ยถ
GetPostList ๊ธ ๋ชฉ๋ก blogName: Blog Name (ํ์) page: ๋ถ๋ฌ์ฌ ํ์ด์ง ๋ฒํธ https://tistory.github.io/document-tistory-apis/apis/v1/post/list.html
func (*Tistory) GetRecentCommentList ยถ
GetComment ์ต์ ๋๊ธ ๋ชฉ๋ก ๊ฐ์ ธ์ค๊ธฐ blogName: Blog Name page: ๊ฐ์ ธ์ฌ ํ์ด์ง (๊ธฐ๋ณธ๊ฐ: 1) count: ํ์ด์ง๋น ๋๊ธ ์ (๊ธฐ๋ณธ๊ฐ: 10, ์ต๋๊ฐ: 10) https://tistory.github.io/document-tistory-apis/apis/v1/comment/recent.html
func (*Tistory) ModifyComment ยถ
ModifyComment ๋๊ธ ์์ blogName: Blog Name (ํ์) postId: ๊ธ ID (ํ์) commentId: ๋๊ธ ID (ํ์) parentId: ๋ถ๋ชจ ๋๊ธ ID (๋๋๊ธ์ธ ๊ฒฝ์ฐ ์ฌ์ฉ) content: ๋๊ธ ๋ด์ฉ secret: ๋น๋ฐ ๋๊ธ ์ฌ๋ถ (1: ๋น๋ฐ๋๊ธ, 0: ๊ณต๊ฐ๋๊ธ - ๊ธฐ๋ณธ ๊ฐ) https://tistory.github.io/document-tistory-apis/apis/v1/comment/modify.html
func (*Tistory) ModifyPost ยถ
ModifyPost ๊ธ ์์ blogName: Blog Name (ํ์) postId: ๊ธ ๋ฒํธ (ํ์) title: ๊ธ ์ ๋ชฉ (ํ์) content: ๊ธ ๋ด์ฉ visibility: ๋ฐํ์ํ (0: ๋น๊ณต๊ฐ - ๊ธฐ๋ณธ๊ฐ, 1: ๋ณดํธ, 3: ๋ฐํ) category: ์นดํ ๊ณ ๋ฆฌ ์์ด๋ (๊ธฐ๋ณธ๊ฐ: 0) published: ๋ฐํ์๊ฐ (TIMESTAMP ์ด๋ฉฐ ๋ฏธ๋์ ์๊ฐ์ ๋ฃ์ ๊ฒฝ์ฐ ์์ฝ. ๊ธฐ๋ณธ๊ฐ: ํ์ฌ์๊ฐ) slogan: ๋ฌธ์ ์ฃผ์ tag: ํ๊ทธ (',' ๋ก ๊ตฌ๋ถ) acceptComment: ๋๊ธ ํ์ฉ (0, 1 - ๊ธฐ๋ณธ๊ฐ) password: ๋ณดํธ๊ธ ๋น๋ฐ๋ฒํธ https://tistory.github.io/document-tistory-apis/apis/v1/post/modify.html
func (*Tistory) WriteComment ยถ
WriteComment ๋๊ธ ์์ฑ blogName: Blog Name (ํ์) postId: ๊ธ ID (ํ์) parentId: ๋ถ๋ชจ ๋๊ธ ID (๋๋๊ธ์ธ ๊ฒฝ์ฐ ์ฌ์ฉ) content: ๋๊ธ ๋ด์ฉ secret: ๋น๋ฐ ๋๊ธ ์ฌ๋ถ (1: ๋น๋ฐ๋๊ธ, 0: ๊ณต๊ฐ๋๊ธ - ๊ธฐ๋ณธ ๊ฐ) https://tistory.github.io/document-tistory-apis/apis/v1/comment/write.html
func (*Tistory) WritePost ยถ
WritePost ๊ธ ์์ฑ blogName: Blog Name (ํ์) title: ๊ธ ์ ๋ชฉ (ํ์) content: ๊ธ ๋ด์ฉ visibility: ๋ฐํ์ํ (0: ๋น๊ณต๊ฐ - ๊ธฐ๋ณธ๊ฐ, 1: ๋ณดํธ, 3: ๋ฐํ) category: ์นดํ ๊ณ ๋ฆฌ ์์ด๋ (๊ธฐ๋ณธ๊ฐ: 0) published: ๋ฐํ์๊ฐ (TIMESTAMP ์ด๋ฉฐ ๋ฏธ๋์ ์๊ฐ์ ๋ฃ์ ๊ฒฝ์ฐ ์์ฝ. ๊ธฐ๋ณธ๊ฐ: ํ์ฌ์๊ฐ) slogan: ๋ฌธ์ ์ฃผ์ tag: ํ๊ทธ (',' ๋ก ๊ตฌ๋ถ) acceptComment: ๋๊ธ ํ์ฉ (0, 1 - ๊ธฐ๋ณธ๊ฐ) password: ๋ณดํธ๊ธ ๋น๋ฐ๋ฒํธ https://tistory.github.io/document-tistory-apis/apis/v1/post/write.html