Search⌘ K
AI Features

Parameters for Making a snoowrap Requester

Explore how to set up the snoowrap requester by understanding its input parameters essential for authentication and interaction with Reddit's API. This lesson helps you configure the snoowrap method properly for tasks like token refreshing and accessing Reddit endpoints.

We'll cover the following...

Input parameters

Here is a list of parameters for the snoowrap() method to initialize the requester.

Parameter

Type

Category

Description

user_agent

string

required

A user_agent is used to identify the source of a network request. We need a unique and descriptive user_agent.

refresh_token

string

optional

A refresh token is a string of characters that can be used to obtain an authenticated instance of Reddit.

client_id

string

optional

A string of random characters is used to authenticate a user.

secret_id

string

optional

A string of random characters is used to authenticate a user.