Zaim APIのためのPython SDK
Project description
Zaim SDK
概要
Zaimの公式APIを利用するためのPythonのSDKです。
インストール
pip install zaim-sdk
使い方
-
アクセストークンを取得する
from zaim_sdk import get_access_token CONSUMER_ID = "xxxxxxxxxx" CONSUMER_SECRET = "xxxxxxxxxx" get_access_token(consumer_id, consumer_secret)
これを、ブラウザが開かれ、Zaimの認証画面が表示されます。
認証後、表示されるアクセストークンとアクセストークンシークレットを控えておいてください。 -
先ほど取得したアクセストークンを使って、ZaimのAPIを利用する。
from zaim_sdk import ZaimSDK, get_access_token CONSUMER_ID = "xxxxxxxxxx" CONSUMER_SECRET = "xxxxxxxxxx" ACCESS_TOKEN = "xxxxxxxxxx" ACCESS_TOKEN_SECRET = "xxxxxxxxxx" zaim = ZaimSDK(CONSUMER_ID, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET)
Requirements
Flask==2.3.3
requests-oauthlib==2.0.0
Werkzeug==2.3.7
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zaim_sdk-0.0.0.tar.gz
(6.3 kB
view details)
Built Distribution
File details
Details for the file zaim_sdk-0.0.0.tar.gz
.
File metadata
- Download URL: zaim_sdk-0.0.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db2bb3f3a86ab484b844d53ec07f9f7b2d52bb8132d7fb732f9a9694af72f61b |
|
MD5 | be07b13b70cc3388eb2ba987bf4d0c78 |
|
BLAKE2b-256 | a5111c34f4ef87ed38f5161cc5b1d9bae5e292047e622aa7af40ff720d80fb40 |
File details
Details for the file zaim_sdk-0.0.0-py3-none-any.whl
.
File metadata
- Download URL: zaim_sdk-0.0.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | afc59fa2652697dd406392e8fa69e3491c91648e3401f5807e202dce9764260b |
|
MD5 | d2da9bad80774bacc2f53fe61d76dda2 |
|
BLAKE2b-256 | 8a1f03e006bba7764570ab05afe7ac97bc9419b75df9110c48eb0c3b6b5f54e0 |