Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Codes are generated by openapi generator #631

Merged
merged 1 commit into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion line-openapi
8 changes: 4 additions & 4 deletions linebot/v3/liff/api/async_liff.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def add_liff_app(self, add_liff_app_request : AddLiffAppRequest, async_req: Opti

@validate_arguments
def add_liff_app(self, add_liff_app_request : AddLiffAppRequest, async_req: Optional[bool]=None, **kwargs) -> Union[AddLiffAppResponse, Awaitable[AddLiffAppResponse]]: # noqa: E501
"""add_liff_app # noqa: E501
"""Create LIFF app # noqa: E501

Adding the LIFF app to a channel # noqa: E501
This method makes a synchronous HTTP request by default. To make an
Expand Down Expand Up @@ -90,7 +90,7 @@ def add_liff_app(self, add_liff_app_request : AddLiffAppRequest, async_req: Opti

@validate_arguments
def add_liff_app_with_http_info(self, add_liff_app_request : AddLiffAppRequest, **kwargs) -> ApiResponse: # noqa: E501
"""add_liff_app # noqa: E501
"""Create LIFF app # noqa: E501

Adding the LIFF app to a channel # noqa: E501
This method makes a synchronous HTTP request by default. To make an
Expand Down Expand Up @@ -509,7 +509,7 @@ def update_liff_app(self, liff_id : Annotated[StrictStr, Field(..., description=

@validate_arguments
def update_liff_app(self, liff_id : Annotated[StrictStr, Field(..., description="ID of the LIFF app to be updated")], update_liff_app_request : UpdateLiffAppRequest, async_req: Optional[bool]=None, **kwargs) -> Union[None, Awaitable[None]]: # noqa: E501
"""update_liff_app # noqa: E501
"""Update LIFF app from a channel # noqa: E501

Update LIFF app settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
Expand Down Expand Up @@ -542,7 +542,7 @@ def update_liff_app(self, liff_id : Annotated[StrictStr, Field(..., description=

@validate_arguments
def update_liff_app_with_http_info(self, liff_id : Annotated[StrictStr, Field(..., description="ID of the LIFF app to be updated")], update_liff_app_request : UpdateLiffAppRequest, **kwargs) -> ApiResponse: # noqa: E501
"""update_liff_app # noqa: E501
"""Update LIFF app from a channel # noqa: E501

Update LIFF app settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
Expand Down
8 changes: 4 additions & 4 deletions linebot/v3/liff/api/liff.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(self, api_client=None):

@validate_arguments
def add_liff_app(self, add_liff_app_request : AddLiffAppRequest, **kwargs) -> AddLiffAppResponse: # noqa: E501
"""add_liff_app # noqa: E501
"""Create LIFF app # noqa: E501

Adding the LIFF app to a channel # noqa: E501
This method makes a synchronous HTTP request by default. To make an
Expand Down Expand Up @@ -78,7 +78,7 @@ def add_liff_app(self, add_liff_app_request : AddLiffAppRequest, **kwargs) -> Ad

@validate_arguments
def add_liff_app_with_http_info(self, add_liff_app_request : AddLiffAppRequest, **kwargs) -> ApiResponse: # noqa: E501
"""add_liff_app # noqa: E501
"""Create LIFF app # noqa: E501

Adding the LIFF app to a channel # noqa: E501
This method makes a synchronous HTTP request by default. To make an
Expand Down Expand Up @@ -469,7 +469,7 @@ def get_all_liff_apps_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E5

@validate_arguments
def update_liff_app(self, liff_id : Annotated[StrictStr, Field(..., description="ID of the LIFF app to be updated")], update_liff_app_request : UpdateLiffAppRequest, **kwargs) -> None: # noqa: E501
"""update_liff_app # noqa: E501
"""Update LIFF app from a channel # noqa: E501

Update LIFF app settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
Expand Down Expand Up @@ -500,7 +500,7 @@ def update_liff_app(self, liff_id : Annotated[StrictStr, Field(..., description=

@validate_arguments
def update_liff_app_with_http_info(self, liff_id : Annotated[StrictStr, Field(..., description="ID of the LIFF app to be updated")], update_liff_app_request : UpdateLiffAppRequest, **kwargs) -> ApiResponse: # noqa: E501
"""update_liff_app # noqa: E501
"""Update LIFF app from a channel # noqa: E501

Update LIFF app settings # noqa: E501
This method makes a synchronous HTTP request by default. To make an
Expand Down
12 changes: 7 additions & 5 deletions linebot/v3/liff/docs/Liff.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ All URIs are relative to *https://api.line.me*

Method | HTTP request | Description
------------- | ------------- | -------------
[**add_liff_app**](Liff.md#add_liff_app) | **POST** /liff/v1/apps |
[**add_liff_app**](Liff.md#add_liff_app) | **POST** /liff/v1/apps | Create LIFF app
[**delete_liff_app**](Liff.md#delete_liff_app) | **DELETE** /liff/v1/apps/{liffId} | Delete LIFF app from a channel
[**get_all_liff_apps**](Liff.md#get_all_liff_apps) | **GET** /liff/v1/apps | Get all LIFF apps
[**update_liff_app**](Liff.md#update_liff_app) | **PUT** /liff/v1/apps/{liffId} |
[**update_liff_app**](Liff.md#update_liff_app) | **PUT** /liff/v1/apps/{liffId} | Update LIFF app from a channel


# **add_liff_app**
> AddLiffAppResponse add_liff_app(add_liff_app_request)


Create LIFF app

Adding the LIFF app to a channel

Expand Down Expand Up @@ -52,6 +52,7 @@ with linebot.v3.liff.ApiClient(configuration) as api_client:
add_liff_app_request = linebot.v3.liff.AddLiffAppRequest() # AddLiffAppRequest |

try:
# Create LIFF app
api_response = api_instance.add_liff_app(add_liff_app_request)
print("The response of Liff->add_liff_app:\n")
pprint(api_response)
Expand Down Expand Up @@ -83,7 +84,7 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | OK | - |
**400** | This status code means one of the following: - The request contains an invalid value. - The maximum number of LIFF apps that can be added to the channel has been reached. | - |
**400** | This status code means one of the following: - The request contains an invalid value. - The maximum number of LIFF apps that can be added to the channel has been reached. | - |
**401** | Authentication failed. | - |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
Expand Down Expand Up @@ -240,7 +241,7 @@ This endpoint does not need any parameter.
# **update_liff_app**
> update_liff_app(liff_id, update_liff_app_request)


Update LIFF app from a channel

Update LIFF app settings

Expand Down Expand Up @@ -279,6 +280,7 @@ with linebot.v3.liff.ApiClient(configuration) as api_client:
update_liff_app_request = linebot.v3.liff.UpdateLiffAppRequest() # UpdateLiffAppRequest |

try:
# Update LIFF app from a channel
api_instance.update_liff_app(liff_id, update_liff_app_request)
except Exception as e:
print("Exception when calling Liff->update_liff_app: %s\n" % e)
Expand Down
Loading