๋ธ๋ก๊ทธ ์ ๋ณด๋ฅผ ๋ฐ์์ค๋ API์ ๋๋ค. ํด๋น API์ ๊ดํ ์ ๋ณด๋ ๋งํฌ ๋ฅผ ํตํด ์ดํด๋ณด์ค ์ ์์ต๋๋ค.
from pytistory import PyTistory
pytistory = PyTistory()
pytistory.configure()
response = pytistory.blog.info()
๊ฒฐ๊ณผ๊ฐ์ ์๋์ฒ๋ผ ๋ฐ์ ์ ์์ต๋๋ค.
{
"status": "200",
"id": "blogtest_080@hanmail.net",
"item": [
{
"url": "http://oauth.tistory.com",
"secondaryUrl": "http://",
"nickname": "Tistory API",
"title": "๋๋ง์ ์ฑ, Tistory OAuth API ๋ก ๋ง๋ค์ด๋ณด์ธ์!",
"description": "",
"default": "Y",
"blogIconUrl":
"http://i1.daumcdn.net/cfs.tistory/blog/79/795307/index.gif",
"faviconUrl":
"http://i1.daumcdn.net/cfs.tistory/blog/79/795307/index.ico",
"profileThumbnailImageUrl":
"http://cfile1.uf.tistory.com/R106x0/1851DB584DAF942950AF29",
"profileImageUrl":
"http://cfile1.uf.tistory.com/R106x0/1851DB584DAF942950AF29",
"statistics": {
"post": "3",
"comment": "0",
"trackback": "0",
"guestbook": "0",
"invitation": "0"
}
},
{
"url": "http://oauth2.tistory.com",
"secondaryUrl": "http://",
"nickname": "Tistory API",
"title": "๋๋ง์ ๋น๋ฐ ํ",
"description": "",
"default": "N",
"blogIconUrl":
"http://i1.daumcdn.net/cfs.tistory/blog/79/795308/index.gif",
"faviconUrl":
"http://i1.daumcdn.net/cfs.tistory/blog/79/795308/index.ico",
"profileThumbnailImageUrl": "",
"profileImageUrl": "",
"blogId": "795308",
"statistics": {
"post": "0",
"comment": "0",
"trackback": "0",
"guestbook": "0",
"invitation": "0"
}
}
]
}