Documentation ¶
Index ¶
Constants ¶
View Source
const AUTH_REDIRECT_CONTENT = `` /* 764-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EditConfig ¶
func (*EditConfig) Do ¶
func (config *EditConfig) Do(accessToken string) error
func (*EditConfig) Parse ¶
func (c *EditConfig) Parse(args []string) error
type InitConfig ¶
type InitConfig struct { RedirectPort int RedirectPath string ClientID string ClientSecret string AccessToken string }
func (*InitConfig) Authorize ¶
func (config *InitConfig) Authorize() error
func (*InitConfig) Load ¶
func (c *InitConfig) Load() error
func (*InitConfig) Parse ¶
func (c *InitConfig) Parse(args []string) error
func (*InitConfig) Save ¶
func (c *InitConfig) Save() error
type PostConfig ¶
func (*PostConfig) Do ¶
func (config *PostConfig) Do(accessToken string) error
func (*PostConfig) Parse ¶
func (c *PostConfig) Parse(args []string) error
type TistoryPost ¶
type TistoryPost struct { ID string `json:"id"` Title string `json:"title"` Content string `json:"content"` CategoryID int `json:"categoryId,string"` PostURL string `json:"postUrl"` Visibility int `json:"visibility,string"` AcceptComment int `json:"acceptCommnet,string"` AcceptTrackback int `json:"acceptTrackback,string"` Comments int `json:"comments,string"` Trackbacks int `json:"trackbacks,string"` Date string `json:"date"` }
"item":{ "id":"1", "title":"티스토리 OAuth2.0 API 오픈!", "content":"안녕하세요 Tistory API 입니다.<br><br>이번에 Third-party Developer 용 <b>Tistory OAuth 2.0 API</b> 가 오픈됩니다.<br>Tistory 회원이라면, 여러분의 모든 app에 자유롭게 활용하실 수 있습니다.<br><br><div class="\"imageblock" center\"="" style="\"text-align:" center;="" clear:="" both;\"=""><img src="\"http://cfile10.uf.tistory.com/image/156987414DAF9799227B34\""></div><br><p></p>많은 기대와 사랑 부탁드립니다. <br> ", "categoryId":"0", "postUrl":"http://oauth.tistory.com/1", "visibility":"0", "acceptComment":"1", "acceptTrackback":"1", "tags : { tag : ["open", "api"] }, "comments":"0", "trackbacks":"0", "date":"1303352668" }
type TistoryRenderer ¶
type TistoryRenderer struct { blackfriday.Renderer BlogName string AccessToken string WorkingDir string }
TistoryRenderer takes image link and upload image if possible. Overrides blackfriday.Renderer.Image()
type ViewConfig ¶
func (*ViewConfig) Do ¶
func (config *ViewConfig) Do(accessToken string) (*TistoryPost, error)
func (*ViewConfig) Parse ¶
func (c *ViewConfig) Parse(args []string) error
Click to show internal directories.
Click to hide internal directories.