[deviantart] update Eclipse API endpoints 2 (#4615)
This commit is contained in:
@@ -1422,12 +1422,14 @@ class DeviantartEclipseAPI():
|
|||||||
self.csrf_token = None
|
self.csrf_token = None
|
||||||
|
|
||||||
def deviation_extended_fetch(self, deviation_id, user, kind=None):
|
def deviation_extended_fetch(self, deviation_id, user, kind=None):
|
||||||
endpoint = "/_napi/da-browse/shared_api/deviation/extended_fetch"
|
endpoint = "/_puppy/dadeviation/init"
|
||||||
params = {
|
params = {
|
||||||
"deviationid" : deviation_id,
|
"deviationid" : deviation_id,
|
||||||
"username" : user,
|
"username" : user,
|
||||||
"type" : kind,
|
"type" : kind,
|
||||||
"include_session": "false",
|
"include_session" : "false",
|
||||||
|
"expand" : "deviation.related",
|
||||||
|
"da_minor_version": "20230710",
|
||||||
}
|
}
|
||||||
return self._call(endpoint, params)
|
return self._call(endpoint, params)
|
||||||
|
|
||||||
@@ -1455,7 +1457,7 @@ class DeviantartEclipseAPI():
|
|||||||
return self._pagination(endpoint, params)
|
return self._pagination(endpoint, params)
|
||||||
|
|
||||||
def search_deviations(self, params):
|
def search_deviations(self, params):
|
||||||
endpoint = "/_napi/da-browse/api/networkbar/search/deviations"
|
endpoint = "/_puppy/dabrowse/search/deviations"
|
||||||
return self._pagination(endpoint, params, key="deviations")
|
return self._pagination(endpoint, params, key="deviations")
|
||||||
|
|
||||||
def user_info(self, user, expand=False):
|
def user_info(self, user, expand=False):
|
||||||
|
|||||||
Reference in New Issue
Block a user