Skip to content

Commit 824be6c

Browse files
authored
Update README.md
1 parent e3c34f7 commit 824be6c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ A partial implementation of the [Reddit](http://reddit.com) API. Includes suppor
88
LINQ-style paging of results.
99

1010
```csharp
11-
var reddit = new Reddit();
12-
var user = reddit.LogIn("username", "password");
11+
var webAgent = new BotWebAgent("BotUsername", "BotPass", "ClientID", "ClientSecret", "RedirectUri");
12+
//This will check if the access token is about to expire before each request and automatically request a new one for you
13+
//"false" means that it will NOT load the logged in user profile so reddit.User will be null
14+
var reddit = new Reddit(webAgent, false);
1315
var subreddit = reddit.GetSubreddit("/r/example");
1416
subreddit.Subscribe();
1517
foreach (var post in subreddit.New.Take(25))

0 commit comments

Comments
 (0)