Skip to content

Commit 987008a

Browse files
committed
Replace endpoints in responses
1 parent ff08c67 commit 987008a

File tree

1 file changed

+26
-27
lines changed

1 file changed

+26
-27
lines changed

src/recnetpy/misc/api_responses.py

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ class AccountResponse(TypedDict):
1111
Typed dictionary used for endpoints that respond with account data.
1212
1313
Associated endponits:
14-
- GET https://accounts.rec.net/account/:playerId
15-
- GET https://accounts.rec.net/account?username={Player_Username}
16-
- GET https://accounts.rec.net/account/search?name={Search_Query}
17-
- POST https://accounts.rec.net/account/bulk
14+
- GET https://apim.rec.net/public/accounts/account/:playerId
15+
- GET https://apim.rec.net/public/accounts/account?username={Player_Username}
16+
- GET https://apim.rec.net/public/accounts/account/search?name={Search_Query}
17+
- POST https://apim.rec.net/public/accounts/account/bulk
1818
"""
1919
accountId: int
2020
username: str
@@ -31,7 +31,7 @@ class CommentResponse(TypedDict):
3131
Typed dictionary for endpoints that respond with comment data.
3232
3333
Associated endpoints:
34-
- GET https://api.rec.net/api/images/v1/:photoId/comments
34+
- GET https://apim.rec.net/public/apis/api/images/v1/:photoId/comments
3535
"""
3636
SavedImageCommentId: int
3737
SavedImageId: int
@@ -43,7 +43,7 @@ class EventResponseResponse(TypedDict):
4343
Typed dictionary for endpoints that respond with event response data.
4444
4545
Associated endpoints:
46-
- GET https://api.rec.net/api/playerevents/v1/:eventId/responses
46+
- GET https://apim.rec.net/public/apis/api/playerevents/v1/:eventId/responses
4747
"""
4848
PlayerEventResponseId: int
4949
PlayerEventId: int
@@ -56,12 +56,12 @@ class EventResponse(TypedDict):
5656
Typed dictionary for endpoints that respond with event data.
5757
5858
Associated endpoints:
59-
- GET https://api.rec.net/api/playerevents/v1 (Supported Params: take, skip, sort)
60-
- GET https://api.rec.net/api/playerevents/v1/:eventId
61-
- GET https://api.rec.net/api/playerevents/v1/creator/:playerId (Supported Params: take, skip)
62-
- GET https://api.rec.net/api/playerevents/v1/search?query={Search_Query} (Supported Params: take, skip, sort)
63-
- GET https://api.rec.net/api/playerevents/v1/room/:roomId (Supported Params: take, skip)
64-
- POST https://api.rec.net/api/playerevents/v1/bulk
59+
- GET https://apim.rec.net/public/apis/api/playerevents/v1 (Supported Params: take, skip, sort)
60+
- GET https://apim.rec.net/public/apis/api/playerevents/v1/:eventId
61+
- GET https://apim.rec.net/public/apis/api/playerevents/v1/creator/:playerId (Supported Params: take, skip)
62+
- GET https://apim.rec.net/public/apis/api/playerevents/v1/search?query={Search_Query} (Supported Params: take, skip, sort)
63+
- GET https://apim.rec.net/public/apis/api/playerevents/v1/room/:roomId (Supported Params: take, skip)
64+
- POST https://apim.rec.net/public/apis/api/playerevents/v1/bulk
6565
"""
6666
PlayerEventId: int
6767
CreatorPlayerId: int
@@ -86,13 +86,13 @@ class ImageResponse(TypedDict):
8686
Typed dictionary for endpoints that respond with image data.
8787
8888
Associated endpoints:
89-
- GET https://api.rec.net/api/images/v4/:photoId
90-
- GET https://api.rec.net/api/images/v3/feed/player/:playerId (Supported Params: take, skip)
91-
- GET https://api.rec.net/api/images/v4/player/:playerId (Supported Params: take, skip, sort)
92-
- GET https://api.rec.net/api/images/v1/playerevent/:eventId (Supported Params: skip, take)
93-
- GET https://api.rec.net/api/images/v4/room/:roomId (Supported Params: take, skip, sort)
94-
- GET https://api.rec.net/api/images/v3/feed/global (Supported Params: take, skip)
95-
- POST https://api.rec.net/api/images/v3/bulk
89+
- GET https://apim.rec.net/public/apis/api/images/v4/:photoId
90+
- GET https://apim.rec.net/public/apis/api/images/v3/feed/player/:playerId (Supported Params: take, skip)
91+
- GET https://apim.rec.net/public/apis/api/images/v4/player/:playerId (Supported Params: take, skip, sort)
92+
- GET https://apim.rec.net/public/apis/api/images/v1/playerevent/:eventId (Supported Params: skip, take)
93+
- GET https://apim.rec.net/public/apis/api/images/v4/room/:roomId (Supported Params: take, skip, sort)
94+
- GET https://apim.rec.net/public/apis/api/images/v3/feed/global (Supported Params: take, skip)
95+
- POST https://apim.rec.net/public/apis/api/images/v3/bulk
9696
"""
9797
Id: int
9898
Type: int
@@ -127,11 +127,10 @@ class InventionResponse(TypedDict):
127127
endpoints.
128128
129129
Associated endpoints:
130-
- GET https://api.rec.net/api/inventions/v1/featured (Supported Params: take, skip)
131-
- GET https://api.rec.net/api/inventions/v2/search?value={Search_Query}
132-
(Seems to be broken currently.)
133-
- GET https://api.rec.net/api/inventions/v1/toptoday
134-
- GET https://api.rec.net/api/inventions/v1?inventionId={Invention_Id}
130+
- GET https://apim.rec.net/public/apis/api/inventions/v1/featured (Supported Params: take, skip)
131+
- GET https://apim.rec.net/public/apis/api/inventions/v2/search?value={Search_Query}
132+
- GET https://apim.rec.net/public/apis/api/inventions/v1/toptoday
133+
- GET https://apim.rec.net/public/apis/api/inventions/v1?inventionId={Invention_Id}
135134
"""
136135
InventionId: int
137136
ReplicationId: str
@@ -201,7 +200,7 @@ class TagResponse(TypedDict):
201200
"""
202201
Used for both rooms and inventions.
203202
204-
- GET https://api.rec.net/api/inventions/v1/details?inventionId={Invention_Id}
203+
- GET https://apim.rec.net/public/apis/api/inventions/v1/details?inventionId={Invention_Id}
205204
"""
206205
Tag: str
207206
Type: int # 0 = user submitted, 1 = unknown, 2 = autoadded
@@ -316,7 +315,7 @@ class BioResponse(TypedDict):
316315
"""
317316
Typed dictionary for the bio endpoint.
318317
319-
- GET https://accounts.rec.net/account/:playerId/bio
318+
- GET https://apim.rec.net/public/accounts/account/:playerId/bio
320319
"""
321320
accountId: int
322321
bio: str
@@ -332,5 +331,5 @@ class BioResponse(TypedDict):
332331
- GET https://api.rec.net/api/influencerpartnerprogram/influencer?accountId={Account_Id} -> int
333332
(This one doesn't seem to work anymore, but its still called on RecNet.)
334333
Images:
335-
- GET https://api.rec.net/api/images/v1/:imageId/cheers -> List[int]
334+
- GET https://apim.rec.net/public/apis/api/images/v1/:imageId/cheers -> List[int]
336335
"""

0 commit comments

Comments
 (0)