glitch-javascript-sdk 2.1.5 → 2.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/api/SocialPosts.ts +11 -11
package/package.json
CHANGED
package/src/api/SocialPosts.ts
CHANGED
|
@@ -109,7 +109,7 @@ class SocialPosts {
|
|
|
109
109
|
*/
|
|
110
110
|
public static progression<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
111
111
|
|
|
112
|
-
return Requests.processRoute(SocialPostsRoute.routes.progression, {}, {
|
|
112
|
+
return Requests.processRoute(SocialPostsRoute.routes.progression, {}, {}, params);
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
/**
|
|
@@ -286,16 +286,16 @@ class SocialPosts {
|
|
|
286
286
|
return Requests.processRoute(SocialPostsRoute.routes.updateCommentMetrics, undefined, { comment_id });
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
289
|
+
/**
|
|
290
|
+
* Create a new top-level comment on a post.
|
|
291
|
+
*
|
|
292
|
+
* @param post_id The ID of the social media post to comment on.
|
|
293
|
+
* @param data The content of the comment.
|
|
294
|
+
* @returns A promise
|
|
295
|
+
*/
|
|
296
|
+
public static createComment<T>(post_id: string, data: object): AxiosPromise<Response<T>> {
|
|
297
|
+
return Requests.processRoute(SocialPostsRoute.routes.createComment, data, { post_id });
|
|
298
|
+
}
|
|
299
299
|
|
|
300
300
|
}
|
|
301
301
|
|