Advertisement
Guest User

Untitled

a guest
Dec 8th, 2017
871
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.52 KB | None | 0 0
  1. using System;
  2. using RedditSharp;
  3. using System.Linq;
  4.  
  5. namespace credditz
  6. {
  7.     class Program
  8.     {
  9.         static void Main(string[] args)
  10.         {
  11.            
  12.             var importReddit = new Reddit();
  13.             importReddit.LogIn("Lord_Zero", "my password");
  14.             var importAccount = importReddit.User;
  15.  
  16.             foreach (string subreddit in importAccount.SubscribedSubreddits.Select(s => s.Name))
  17.             {
  18.                 Console.WriteLine(subreddit);  
  19.             }
  20.  
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement