-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from gunyu1019/develop
[Deploy] Deploy v0.0.4
- Loading branch information
Showing
7 changed files
with
61 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,18 @@ | ||
from async_client_decorator import get, Query | ||
from ahttp_client import get, Query | ||
from ahttp_client.extension import get_pydantic_response_model | ||
from typing import Annotated | ||
|
||
from .access_token import AccessToken | ||
from ..base_model import Content | ||
from ..http import ( | ||
ChzzkSession, | ||
NaverGameAPISession, | ||
_response_pydantic_model_validation_able, | ||
_custom_query_name, | ||
_response_pydantic_model_validation, | ||
) | ||
from ..http import ChzzkSession, NaverGameAPISession | ||
|
||
|
||
class ChzzkChatSession(NaverGameAPISession): | ||
@_response_pydantic_model_validation_able | ||
@ChzzkSession.logging | ||
@_custom_query_name("channel_id", "channelId") # Will moved. (Temporary Decorator) | ||
@ChzzkSession.login_able | ||
@get("/nng_main/v1/chats/access-token") | ||
@get_pydantic_response_model() | ||
@get("/nng_main/v1/chats/access-token", directly_response=True) | ||
@ChzzkSession.configuration(login_able=True) | ||
@Query.default_query("chatType", "STREAMING") | ||
@_response_pydantic_model_validation | ||
async def chat_access_token( | ||
self, channel_id: Annotated[str, Query] | ||
self, channel_id: Annotated[str, Query.to_camel()] | ||
) -> Content[AccessToken]: | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
aiohttp==3.9.1 | ||
aiohttp==3.9.3 | ||
aiosignal==1.3.1 | ||
annotated-types==0.6.0 | ||
async-timeout==4.0.3 | ||
async_client_decorator==0.2.0 | ||
ahttp_client==1.0.0 | ||
attrs==23.2.0 | ||
charset-normalizer==3.3.2 | ||
frozenlist==1.4.1 | ||
idna==3.6 | ||
multidict==6.0.4 | ||
pydantic==2.6.1 | ||
pydantic_core==2.16.2 | ||
multidict==6.0.5 | ||
pydantic==2.6.2 | ||
pydantic_core==2.16.3 | ||
typing_extensions==4.9.0 | ||
yarl==1.9.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters