Skip to content

motoki317/traq-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

traq.py

PyPI version

traQ v3 API library for Python >= 3.6.

Generation

./generate.sh 3.0.0-0
# Configure PyPI account and ~/.pypirc
./upload.sh

Usage

A quick example of posting message to a channel:

from traq import ApiClient, Configuration
from traq.api.message_api import MessageApi
from traq.model.post_message_request import PostMessageRequest

if __name__ == '__main__':
    client = ApiClient(Configuration(access_token="your-access-token"))
    m_api = MessageApi(client)
    message = m_api.post_message("channel-id", post_message_request=PostMessageRequest("おいす〜"))
    print(message)

For more, see ./out/README.md

References

About

traQ API Client Library for Python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published