Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@skyra/reddit-helpers

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@skyra/reddit-helpers

Very basic Reddit helper functions used across several ArchId bots

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
92
decreased by-47.73%
Maintainers
2
Weekly downloads
 
Created
Source

@skyra/reddit-helpers

Very basic Reddit helper functions for several ArchId bots to ensure we do not duplicate code.

Note that this package only does Application Only Oauth and requires an application of the "Installed" type!

Features

  • Powered by the @skyra/safe-fetch package

Usage

First of all, you should make sure to define the following environment variables for your process:

  • REDDIT_CLIENT_ID: The Client ID of your Reddit application (generated at Reddit Apps Dashboard)
  • REDDIT_DEVICE_ID: A unique, per-device ID generated by your client.

After this, you can use the functions exported from this package to interact with the Reddit API.

What value should I use for device_id?

You should generate and save unique ID on your client. The ID should be unique per-client. A randomized or pseudo-randomized value is acceptable for generating the ID; however, you should retain and re-use the same device_id when renewing your access token.

Keywords

FAQs

Package last updated on 11 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc