Metadata-Version: 2.1
Name: timetree-sdk
Version: 0.1.2
Summary: TimeTree API SDK for Python
Home-page: https://github.com/morugu/timetree-sdk-python
Author: Shoya Shiraki
Author-email: shoya.shiraki@gmail.com
License: MIT
Description: # TimeTree SDK for Python
        
        [TimeTree API](https://developers.timetreeapp.com/en/docs/api) SDK for Python.
        
        # Installing
        
        ```
        $ pip install timetree-sdk
        ```
        
        # Usage
        
        ```python
        from timetree_sdk import TimeTreeApi
        
        api = TimeTreeApi('API_ACCESS_TOKEN')
        calendar = api.get_calendar('CALENDAR_ID')
        print(calendar.data.attributes.name) # calendar name
        ```
        
        # API
        
        ## User
        
        ### get_current_user
        
        ```python
        user = api.get_current_user()
        print(user.data.attributes.name) # user name
        ```
        
        ## Calendar
        
        ### get_calendars
        
        ```python
        calenders = api.get_calendars()
        print(calenders.data[0].attributes.name) # first calender name
        ```
        
        ### get_calendar
        
        ```python
        calendar = api.get_calendar('CALENDAR_ID')
        print(calendar.data.attributes.name) # calendar name
        ```
        
        ### get_calendar_labels
        
        ```python
        labels = api.get_calendar_labels('CALENDAR_ID')
        print(labels.data[0].attributes.name) # first calender's label name
        ```
        
        ### get_calendar_members
        
        ```python
        members = api.get_calendar_members('CALENDAR_ID')
        print(members.data[0].attributes.name) # first calender's member name
        ```
        
        ## Event
        
        ### get_event
        
        ```python
        event = api.get_event('CALENDAR_ID', 'EVENT_ID')
        print(event.data.attributes.title) # event title
        ```
        
        ### get_upcoming_events
        
        ```python
        events = api.get_upcoming_events('CALENDAR_ID', 'Asia/Tokyo', 7)
        print(events.data[0].attributes.title) # most recent  event title in 7 days
        ```
        
        - create_event
        
        - delete_event
        
        - update event
        
        ## Event Comment
        
        ### create comment to event
        
        ```python
        comment = EventComment(
            data=EventCommentData(
                attributes=EventCommentAttributes(
                    content='Hello, world'
                )
            )
        )
        event_comment = api.create_event_comment('CALENDAR_ID', 'EVENT_ID', comment)
        print(event_comment.data.attributes.content) # Hello, world
        ```
        
        # Documentation
        
        Official API documentation
        
        English: https://developers.timetreeapp.com/en/docs/api
        
        Japanese: https://developers.timetreeapp.com/ja/docs/api
        
Keywords: TimeTree timetree time-tree api sdk
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.8
Description-Content-Type: text/markdown
