Skip to content

Commit 2a03962

Browse files
committed
Add unified client
1 parent 28c9f16 commit 2a03962

31 files changed

Lines changed: 6919 additions & 0 deletions

docs/source/linebot.v3.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ linebot.v3 package
33

44
.. automodule:: linebot.v3
55

6+
Client
7+
------
8+
9+
.. autoclass:: linebot.v3.line_bot_client.LineBotClient
10+
:members:
11+
12+
.. autoclass:: linebot.v3.async_line_bot_client.AsyncLineBotClient
13+
:members:
14+
615
linebot.v3.webhook module
716
--------------------------
817

generator/src/main/resources/python-nextgen-custom-client/api.mustache

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class {{classname}}(object):
2727
Ref: https://openapi-generator.tech
2828

2929
Do not edit the class manually.
30+
31+
Tip: Use :class:`linebot.v3.LineBotClient` to call every
32+
LINE API method through a single instance.
3033
"""
3134

3235
def __init__(self, api_client=None):

generator/src/main/resources/python-nextgen-custom-client/asyncio/async_api.mustache

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ class Async{{classname}}(object):
2828
Ref: https://openapi-generator.tech
2929

3030
Do not edit the class manually.
31+
32+
Tip: Use :class:`linebot.v3.AsyncLineBotClient` to call every
33+
LINE API method through a single instance.
3134
"""
3235

3336
def __init__(self, api_client=None):

linebot/v3/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@
2020
WebhookHandler,
2121
WebhookPayload,
2222
)
23+
24+
from .line_bot_client import LineBotClient # noqa
25+
from .async_line_bot_client import AsyncLineBotClient # noqa

linebot/v3/async_line_bot_client.py

Lines changed: 2405 additions & 0 deletions
Large diffs are not rendered by default.

linebot/v3/audience/api/async_manage_audience.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ class AsyncManageAudience(object):
5252
Ref: https://openapi-generator.tech
5353
5454
Do not edit the class manually.
55+
56+
Tip: Use :class:`linebot.v3.AsyncLineBotClient` to call every
57+
LINE API method through a single instance.
5558
"""
5659

5760
def __init__(self, api_client=None):

linebot/v3/audience/api/async_manage_audience_blob.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ class AsyncManageAudienceBlob(object):
3939
Ref: https://openapi-generator.tech
4040
4141
Do not edit the class manually.
42+
43+
Tip: Use :class:`linebot.v3.AsyncLineBotClient` to call every
44+
LINE API method through a single instance.
4245
"""
4346

4447
def __init__(self, api_client=None):

linebot/v3/audience/api/manage_audience.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ class ManageAudience(object):
5050
Ref: https://openapi-generator.tech
5151
5252
Do not edit the class manually.
53+
54+
Tip: Use :class:`linebot.v3.LineBotClient` to call every
55+
LINE API method through a single instance.
5356
"""
5457

5558
def __init__(self, api_client=None):

linebot/v3/audience/api/manage_audience_blob.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ class ManageAudienceBlob(object):
3737
Ref: https://openapi-generator.tech
3838
3939
Do not edit the class manually.
40+
41+
Tip: Use :class:`linebot.v3.LineBotClient` to call every
42+
LINE API method through a single instance.
4043
"""
4144

4245
def __init__(self, api_client=None):

linebot/v3/insight/api/async_insight.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ class AsyncInsight(object):
4343
Ref: https://openapi-generator.tech
4444
4545
Do not edit the class manually.
46+
47+
Tip: Use :class:`linebot.v3.AsyncLineBotClient` to call every
48+
LINE API method through a single instance.
4649
"""
4750

4851
def __init__(self, api_client=None):

0 commit comments

Comments
 (0)