Metadata-Version: 2.1
Name: zaim-sdk
Version: 0.0.0
Summary: Zaim APIのためのPython SDK
Author-email: tra <tisk0711ngm@gmail.com>
Maintainer-email: tra <tisk0711ngm@gmail.com>
License: MIT License
        
        Copyright (c) 2024 tra
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
Project-URL: Source, https://github.com/clcl777/zaim-sdk
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Environment :: Web Environment
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Typing :: Typed
Classifier: Topic :: Software Development
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: Flask >=2.3.3
Requires-Dist: requests-oauthlib >=2.0.0
Requires-Dist: Werkzeug >=2.3.7
Provides-Extra: dev
Requires-Dist: build ; extra == 'dev'
Requires-Dist: twine ; extra == 'dev'

# Zaim SDK

## 概要
Zaimの公式APIを利用するためのPythonのSDKです。

## インストール
```bash
pip install zaim-sdk
```

## 使い方
1. アクセストークンを取得する
    ```python
    from zaim_sdk import get_access_token

    CONSUMER_ID = "xxxxxxxxxx"
    CONSUMER_SECRET = "xxxxxxxxxx"
    get_access_token(consumer_id, consumer_secret)
    ```
    これを、ブラウザが開かれ、Zaimの認証画面が表示されます。  
    認証後、表示されるアクセストークンとアクセストークンシークレットを控えておいてください。

1. 先ほど取得したアクセストークンを使って、ZaimのAPIを利用する。
    ```python
    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
```
