Skip to main content

Tistory API Wrapper

Project description

Tistory API Wrapper

Overview

Tistory API Wrapper

Install

$ pip install tech-ninja-tistory-api

Usage

from tech_ninja_tistory_api import TistoryAPI

blog_name = 'yscho03'
tistory_api = TistoryAPI(blog_name)

tistory_client_id = 'xxxxxxxxxx'
tistory_redirect_uri = 'http://localhost/tistory/auth/callback'

oauth_url = tistory_api.authorize(tistory_client_id, tistory_redirect_uri)
print('>>> Generated Oauth URL')
print(oauth_url)

"""
https://www.tistory.com/oauth/authorize?client_id=xxxxxxxxxx&redirect_uri=http://localhost/tistory/auth/callback&response_type=code&state=
"""

# access_token
tistory.access_token = '<YOUR_ACCESS_TOKEN>'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tech-ninja-tistory-api-1.0.4.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file tech-ninja-tistory-api-1.0.4.tar.gz.

File metadata

  • Download URL: tech-ninja-tistory-api-1.0.4.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.16 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15

File hashes

Hashes for tech-ninja-tistory-api-1.0.4.tar.gz
Algorithm Hash digest
SHA256 b15436843591fef4f4bf5a1e3ee3a25e34e335286e2b6a3a992d90c1efe8478b
MD5 a32aa3091221f9eb0ee5804f018ba07f
BLAKE2b-256 fa2d02952741e36275ee9f57789433dd05ce3d06db21a872cd81b93c0df2b60c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page