Updates
This commit is contained in:
+5
-2
@@ -1,5 +1,8 @@
|
||||
import { APIResponseObject } from "../../types";
|
||||
import { DSQL_DATASQUIREL_USER_MEDIA } from "../../types/dsql";
|
||||
export default function apiMediaDELETE(params: {
|
||||
type Params = {
|
||||
mediaID?: string | number;
|
||||
}): Promise<APIResponseObject<DSQL_DATASQUIREL_USER_MEDIA | DSQL_DATASQUIREL_USER_MEDIA[]>>;
|
||||
apiKey?: string;
|
||||
};
|
||||
export default function apiMediaDELETE(params: Params): Promise<APIResponseObject<DSQL_DATASQUIREL_USER_MEDIA | DSQL_DATASQUIREL_USER_MEDIA[]>>;
|
||||
export {};
|
||||
|
||||
+1
@@ -12,6 +12,7 @@ export default async function apiMediaDELETE(params) {
|
||||
const DELETE_MEDIA_RES = await queryDSQLAPI({
|
||||
method: "DELETE",
|
||||
path: finalPath,
|
||||
apiKey: params.apiKey,
|
||||
});
|
||||
return DELETE_MEDIA_RES;
|
||||
}
|
||||
|
||||
Vendored
+1
@@ -13,6 +13,7 @@ export default async function apiMediaGET(params) {
|
||||
method: "GET",
|
||||
path: finalPath,
|
||||
query: params,
|
||||
apiKey: params.apiKey,
|
||||
});
|
||||
return GET_MEDIA_RES;
|
||||
}
|
||||
|
||||
+1
@@ -6,6 +6,7 @@ export default async function apiMediaPOST(params) {
|
||||
method: "POST",
|
||||
path: basePath,
|
||||
body: params,
|
||||
apiKey: params.apiKey,
|
||||
});
|
||||
return POST_MEDIA_RES;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user