Skip to content

Commit

Permalink
Correct endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
chillymosh committed May 12, 2024
1 parent f4e1987 commit 87b3359
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions twitchio/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -1757,7 +1757,7 @@ async def get_user_subscription(
self, broadcaster_id: str | int, user_id: str | int, token_for: str
) -> CheckUserSubscriptionResponse:
params = {"broadcaster_id": broadcaster_id, "user_id": user_id}
route: Route = Route("POST", "subscriptions/user", params=params, token_for=token_for)
route: Route = Route("GET", "subscriptions/user", params=params, token_for=token_for)
return await self.request_json(route)

async def get_broadcaster_subscriptions(
Expand Down Expand Up @@ -1859,5 +1859,5 @@ async def delete_videos(self, ids: list[str | int], token_for: str) -> DeleteVid
async def post_whisper(self, from_user_id: str | int, to_user_id: str | int, token_for: str, message: str) -> None:
params = {"from_user_id": from_user_id, "to_user_id": to_user_id}
data = {"message": message}
route: Route = Route("DELETE", "videos", params=params, json=data, token_for=token_for)
route: Route = Route("POST", "whispers", params=params, json=data, token_for=token_for)
return await self.request_json(route)

0 comments on commit 87b3359

Please sign in to comment.