glitch-javascript-sdk
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -40,3 +40,13 @@ import Response from "../util/Response"; | ||
static dispute<T>(post_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>; | ||
/** | ||
* Get the change of the post metrics over a period of time. | ||
* | ||
* @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/getSocialMediaPostHistory | ||
* | ||
* @param post_id The id fo the post to retrieve. | ||
* | ||
* @returns promise | ||
*/ | ||
static history<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>; | ||
} | ||
export default SocialPosts; |
{ | ||
"name": "glitch-javascript-sdk", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "Javascript SDK for Glitch", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
@@ -58,4 +58,18 @@ import SocialPostsRoute from "../routes/SocialPostsRoute"; | ||
/** | ||
* Get the change of the post metrics over a period of time. | ||
* | ||
* @see https://api.glitch.fun/api/documentation#/Social%20Media%20Posts/getSocialMediaPostHistory | ||
* | ||
* @param post_id The id fo the post to retrieve. | ||
* | ||
* @returns promise | ||
*/ | ||
public static history<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> { | ||
return Requests.processRoute(SocialPostsRoute.routes.history, {}, { post_id: post_id }, params); | ||
} | ||
} | ||
export default SocialPosts; |
@@ -11,2 +11,3 @@ import Route from "./interface"; | ||
dispute: { url: '/social/{post_id}/dispute', method: HTTP_METHODS.POST }, | ||
history : { url: '/socialposts/{post_id}/history', method: HTTP_METHODS.GET }, | ||
}; | ||
@@ -13,0 +14,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
2489593
45284