Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
import { SnooShift } from "snooshift"; // create new object const snoo = new SnooShift(); // search parameters // https://github.com/pushshift/api#search-parameters-for-comments // search comments by author const searchParams = { author: "eben0", }; // send request snoo.searchComments(searchParams).then((comments) => { console.log(comments); });
import { SnooShift } from "snooshift"; // list of supported credentials: // https://github.com/not-an-aardvark/snoowrap#examples const credentials = { userAgent: "put your user-agent string here", clientId: "put your client id here", clientSecret: "put your client secret here", refreshToken: "put your refresh token here", }; const snoo = new SnooShift(credentials); // get comment and reply/upvote/etc... snoo.getComment("gof4uys").then((comment) => { comment.reply("My awesome reply").then(value); comment.upvote().then(value); comment.delete().then(value); });