Reddit.NET  1.5
Reddit.NET is a .NET Standard library that provides easy access to the Reddit API with virtually no boilerplate code required.
Reddit.AuthTokenRetriever.AuthTokenRetrieverLib Class Reference

Public Member Functions

 AuthTokenRetrieverLib (string appId=null, string appSecret=null, int port=8080)
 Create a new instance of the Reddit.NET OAuth Token Retriever library. More...
 
void AwaitCallback (bool generateLocalOutput=false)
 
void StopListening ()
 
string AuthURL (string scope="creddits%20modcontributors%20modmail%20modconfig%20subscribe%20structuredstyles%20vote%20wikiedit%20mysubreddits%20submit%20modlog%20modposts%20modflair%20save%20modothers%20read%20privatemessages%20report%20identity%20livemanage%20account%20modtraffic%20wikiread%20edit%20modwiki%20modself%20history%20flair")
 
string ExecuteRequest (RestRequest restRequest)
 

Properties

string AccessToken [get]
 
string RefreshToken [get]
 

Events

EventHandler< AuthSuccessEventArgsAuthSuccess
 

Constructor & Destructor Documentation

◆ AuthTokenRetrieverLib()

Reddit.AuthTokenRetriever.AuthTokenRetrieverLib.AuthTokenRetrieverLib ( string  appId = null,
string  appSecret = null,
int  port = 8080 
)

Create a new instance of the Reddit.NET OAuth Token Retriever library.

Parameters
appIdYour Reddit App ID
appSecretYour Reddit App Secret (leave empty for installed apps)
portThe port to listen on for the callback (default: 8080)
browserPathThe path to your local web browser

Member Function Documentation

◆ AuthURL()

string Reddit.AuthTokenRetriever.AuthTokenRetrieverLib.AuthURL ( string  scope = "creddits%20modcontributors%20modmail%20modconfig%20subscribe%20structuredstyles%20vote%20wikiedit%20mysubreddits%20submit%20modlog%20modposts%20modflair%20save%20modothers%20read%20privatemessages%20report%20identity%20livemanage%20account%20modtraffic%20wikiread%20edit%20modwiki%20modself%20history%20flair")

◆ AwaitCallback()

void Reddit.AuthTokenRetriever.AuthTokenRetrieverLib.AwaitCallback ( bool  generateLocalOutput = false)

◆ ExecuteRequest()

string Reddit.AuthTokenRetriever.AuthTokenRetrieverLib.ExecuteRequest ( RestRequest  restRequest)

◆ StopListening()

void Reddit.AuthTokenRetriever.AuthTokenRetrieverLib.StopListening ( )

Property Documentation

◆ AccessToken

string Reddit.AuthTokenRetriever.AuthTokenRetrieverLib.AccessToken
get

◆ RefreshToken

string Reddit.AuthTokenRetriever.AuthTokenRetrieverLib.RefreshToken
get

Event Documentation

◆ AuthSuccess

EventHandler<AuthSuccessEventArgs> Reddit.AuthTokenRetriever.AuthTokenRetrieverLib.AuthSuccess

The documentation for this class was generated from the following file: