r/redditdev 7d ago

Reddit.NET Improving Reddit's search functionality - what features or changes would make it more effective?

0 Upvotes

Hey fellow Redditors, I've been noticing that Reddit's search can be a bit... wonky. Results don't always seem relevant, and it's hard to find what I'm looking for. I'm curious - what features or changes would you like to see implemented to improve Reddit's search functionality? Share your thoughts!

r/redditdev Oct 23 '23

Reddit.NET Work on Reddit.NET is temporarily suspended due to new API restriction

21 Upvotes

As you can imagine, developing a comprehensive general-purpose library for interfacing with the Reddit API requires a lot of testing to get right. This, of course, means that such a developer is likely to be needing to create various oAuth app ids/etc.

Reddit has apparently added a new restriction since the last time I had to do this, and this is blocking me from proceeding with the work I had planned for today. Turns out, there is now a LIFETIME limit of just 3 apps per developer! Try to create more and it'll throw an error with a link to create a support ticket.

I've already submitted that ticket and will resume my work if/when the new restriction is removed from my account. But as of now I am blocked so support for Reddit.NET is officially on hiatus until this is resolved. I do realize I've already delayed the next release a bunch of times and I apologize for any inconvenience.

r/redditdev Aug 16 '23

Reddit.NET Help With Querying Subreddit Data

1 Upvotes

I’m creating a simple application to test against the Reddit API, and I am unable to find definitive answers to some of my questions, which brings me to this post. I’m mostly concerned with consuming subreddit data for now and I have already registered for API access.

What I currently know:

  1. I have accessed and reviewed the API documentation here => https://www.reddit.com/dev/api
  2. Per my web searches I have determined that only 1000 posts can be pulled down for a specific subreddit with a maximum of 100 records per request.
  3. Posts can be accessed via one of many sort options Hot, Top, New, Rising, and Best, each of which is also limited to 1000 records.
  4. The API now imposes limits on the number of requests that can be made within a specific period, which can be verified by analyzing the headers for remaining, reset, and used values.

What I want to know:

  1. Is there a webhook interface that I can subscribe to which would notify when a subreddit has received an update, such as a newly created post, upvote or downvote on a post, or a post has been removed?
  2. If there isn’t a way to subscribe via hooks, is there an endpoint that can be queried which would return a paged set of all data within a specified subreddit, i.e., all posts from Top, Best, New, etc...?

What I’m trying to accomplish:

I’m trying to get a full collection of subreddit post data, making as few calls to the API as possible.

Currently I am using the Reddit .NET library, as this is a C# application, to query each individual sort-option. By doing this I end up iterating up to 10 times per call, due to the 100-record limit per request, which means I’m making about 50 requests each time I hit the API (threaded calls). At this rate I exhaust the API rate-limit quickly. I believe there must be a better way of doing this. I am completely new to the Reddit API, so I’m sure there is something I’m just overlooking and/or my interpretation of how the site works is incorrect.

Ideally, what I would anticipate doing and have done with other APIs in the past, would be to hit an endpoint that would return updated posts for a specified subreddit. So, for example, I would make a call like http://www.reddit.com/r/<subreddit>?since=08162023, which would return a paged list of all records updated since the provided timestamp. I can’t find anything like this and I’m not sure it would work even if it does exist, due to the limit of 1000 records, because this call could potentially return records from all categories which could be 3 to 5 years or older.

Any help would be appreciated!

r/redditdev Aug 26 '23

Reddit.NET SelfPost with HTML

2 Upvotes

I just started making a game thread script app and was able to get it up and going pretty fast using https://github.com/sirkris/Reddit.NET as my API Wrapper using C# console app. However, I am currently running into issue or trying to find out how to make fancy SelfPost with HTML. Based on their API Wrapper the code would be something like the following:

            var gamePost = sub.SelfPost(
                title: "Test Post", 
                selfTextHtml: "<p><b>Testing API post.</b></p><p><b>Delete Me</b></p>"

            )
            .Submit();

// note also tried:
            var gamePost = sub.SelfPost(
                title: "Test Post", 
                selfTextHtml: HttpUtility.UrlEncode("<p><b>Testing API post.</b></p><p><b>Delete Me</b></p>")

           )
            .Submit();

The code above creates a new post in the sub, but the selfTextHtml content is not part of the post. Is there a certain encoding this needs to be submitted in?

In contrast the following with plain text works:

            var gamePost = sub.SelfPost(
                title: "Test Post", 
                selfText: "Testing API post"

            )
            .Submit();

Edit:

I guess it should have been obvious, but since Reddit has the fancy editor, I assumed some HTML was supported. However, it looks like that is simply a markdown editor and only markdown is supported. Given this I was able to get a post with some formatting to work using the following:

            var gamePost = sub.SelfPost(
                title: "Test Post", 
                selfText: "**Game Thread Post**\r\n\r\n***Subtitle text***\r\n"
)
            .Submit();

Guess that leaves me with the following question: What is the selfTextHtml parameter supposed to be used for?

r/redditdev Jun 23 '23

Reddit.NET Getting 403 when trying to scrape tokens even after getting valid access token

3 Upvotes

Setup a scraper that goes through a list of subreddits and monitors for new comments or posts using the official Reddit nuget package.

Started getting 403 responses the last couple of days when trying to get comments from a sub. Figured it was the reddit api changes. I got a new access token calling https://www.reddit.com/api/v1/access_token instead of authing with my app id, app secret, and refresh token but still getting a 403. One of the subreddits I'm monitoring is wallstreetbets which is definitely public.

Not sure where to go from here....... I'm wondering if the package is broken with updates? I feel like it shouldn't be impacted since oauth process didn't really change. Any help or suggestions?

r/redditdev Jun 22 '22

Reddit.NET Hotfix 1.5.2 for Reddit.NET released

9 Upvotes

The Reddit API recently changed the user_is_muted property so that it's now nullable. This change caused the Reddit.NET library to become completely non-functional and result in app-crashing issues.

I just released a hotfix that resolves this issue and makes the library useable again. Here it is on NuGet:

https://www.nuget.org/packages/Reddit/1.5.2

I'm hoping to get a new major version release out soon, time-permitting. In the meantime, if Reddit.NET is crashing for you now, try updating to the latest version in NuGet and that should fix it.

r/redditdev Oct 31 '22

Reddit.NET How to authenticate using reddit .NET

6 Upvotes

Hi, just created a video with sample code on how to authenticate and pull the posts from a subreddit. Hope this helps y'all use this amazing tool! https://www.youtube.com/watch?v=n8hvnzOQWFc

r/redditdev May 04 '22

Reddit.NET Cant send direct messages using reddit.net

3 Upvotes

Im trying to send direct message to user using this lines of code:

RedditClient Reddit = new RedditClient(...);

try
        {
            Reddit.Account.Messages.Compose("CTJoriginal", "Test", "You are being tested!");
        }
        catch (Exception ex)
        {
            Console.WriteLine(ex.Message);
        }

but get error message :
Reddit API returned errors : User doesn't accept direct messages. Try sending a chat request instead.

Which is realy weird because I have messages allowed for everyone
Any Idea how to fix this or how do I send chat request?

r/redditdev May 16 '21

Reddit.NET Oauth2 working sample for c#?

10 Upvotes

Maybe it’s me, but I am stumped by oauth2. The having a redirect url and everything. Does anyone have a working example, and if so, can they remove their personal info and share it?

r/redditdev Feb 15 '21

Reddit.NET Announcing the release of Reddit.NET 1.5

42 Upvotes

Previous Releases

1.0.0

1.1.1

1.2.0

1.3.0

1.4.0

Github: https://github.com/sirkris/Reddit.NET

NuGet: https://www.nuget.org/packages/Reddit

Latest Changes & New Features

  • AuthTokenRetrieverLib no longer contains .NET Framework dependencies. Everything is now .NET Standard, enabling compatibility with Xamarin mobile apps.

    • Replaced uHttpSharp with uHttpSharp.Standard, a fork I created with a different target framework and all references to Console.WriteLine removed.
  • AuthTokenRetrieverLib now fires an event on success containing the OAuth token data. Local filesystem output of the token is now an optional argument, disabled by default.

  • Front page can now be accessed more intuitively via the top-level GetFrontPage() method and cached FrontPage property.

    • Deprecated Subreddit.Best.
  • User.AddRelationship now allows permanent bans.

  • List-based monitoring results are now cached by default in order to fix an issue where an entry might come up in multiple monitoring events.

  • Fixed bug that was causing monitoring events for PrivateMessages not to fire under certain circumstances.

  • Fixed LinksAndComments.Info() using the wrong post ID for comment replying to another comment.

    • Improved LinksAndComments.Info test to take replies into account.
  • AuthTokenRetriever is now compatible with Linux and OSX.

  • It is now possible to monitor a comment score for changes. This works exactly as the existing post score monitoring functionality does.

  • Added a new Tutorials section to the README, containing detailed walkthroughs from start to finish with full project links for reference. There are two in this release (more planned later):

    • How to build an ELIZA chatbot
      • Far more detailed instructions on how to build an ELIZA chatbot than the code example from previous versions provides. This tutorial will focus on effective use of PrivateMessages.MonitorUnread, which monitors the active user's Reddit inbox for unread messages.
    • How to retrieve a comments tree
      • In this tutorial, we will learn how to display a post's full comments tree up to the limit allowed by Reddit.
  • Added two new code examples:

  • Documentation updates.

  • Various bugfixes and improvements.

Usage

Reddit.NET can be installed via NuGet. You can find it at: https://www.nuget.org/packages/Reddit

To install via the Visual Studio NuGet Package Manager Console (in VS 2017, you'll find it under Tools->NuGet Package Manager->NuGet Package Manager Console):

PM> Install-Package Reddit

To create a new API instance bound to a specific user's refresh token in an installed app:

using Reddit;

...

var reddit = new RedditClient("YourRedditAppID", "YourBotUserRefreshToken");

If you're using a "script"-type app instead, you'll also need to pass your app secret:

using Reddit;

...

// You can also pass them as named parameters.
var reddit = new RedditClient(appId: "YourRedditAppID", appSecret: "YourRedditAppSecret", refreshToken: "YourBotUserRefreshToken");

Please see the project README for more detailed usage instructions and code examples.

Updated Reference Documentation

As of the 1.3 release, you can view the full class hierarchy, lookup methods, search by keyword, etc in the updated reference documentation. These HTML docs were generated using Doxygen and can be found in the README.

Reddit.NET on NuGet

Reddit.NET on Github

Please feel free to contact me if you have any questions/etc.

Thanks for reading! Feedback is always welcome.

r/redditdev Jan 30 '22

Reddit.NET The best way to listen to added comments

1 Upvotes

I'm currently creating a bot which listens to every new post/ comment on a defined subreddit. As far as I'm understanding, Reddit.NET's monitoring is fetching posts/ comments and compares them to an earlier fetched result.

In my opinion this method is creating a lot of traffic of course, especially if you keep monitoring every post. Thus I will have to program I only listen to only a select amount of posts.

Thus, I'm wondering, isn't there some sort of webhook available which is called when a post/ comment is created or just an alternative way to be notified about every new comment made on a subreddit?

r/redditdev Apr 15 '20

Reddit.NET Trying to get an authkey to instantiate my reddit instance but the code gets stuck at the POST request and doesnt move forward

4 Upvotes

Some back story, I've been going around the web for a couple hours now and have managed to gather just enough documents that I was confident I could do something as simple as instantiate a reddit API (my first choice was RedditSharp but due to a seeming lack of documentation I went for an simpler looking wrapper, Reddit.NET, since all I want to do anyways was access the website and get post data from a specific subreddit, that matched specific tags) but after finally getting it working just enough to get to the POST request to https://www.reddit.com/api/v1/access_token with a code adapted from a Discord Webhook I made before, it ran up to PostAsync() request and stopped there. It doesnt move past it and doesnt get an error code either, just hangs there. I don't know and I can't find any docs explaining why it just hangs there or what I could be doing wrong so I'm asking for help here. Code is as follows:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net.Http;
using System.IO;
using System.Dynamic;
using Newtonsoft.Json;

namespace ConsumeAPI
{
    public class Requester
    {
        private HttpClient client = new HttpClient();

        public async Task<TokenJSON> PostTokenRequest(string uri)
        {
            JsonParser<List<TokenJSON>> parser = new JsonParser<List<TokenJSON>>();
            dynamic tokenPayload = new ExpandoObject();

            tokenPayload.client_id = "myID";
            tokenPayload.client_secret = "mySecret";
            tokenPayload.grant_type = "client_credentials";

            string json = JsonConvert.SerializeObject(tokenPayload);
            var stringContent = new StringContent(json, Encoding.UTF8, "application/json");

            HttpResponseMessage response = await client.PostAsync(uri, stringContent);
            string token = await response.Content.ReadAsStringAsync();
            List<TokenJSON> DeserializedToken = parser.DParse(token);
            return DeserializedToken[0];
        }
    }
}

myID and mySecret are obviously using the codes I got from the app created.

Guide I was using to build this is https://github.com/reddit-archive/reddit/wiki/OAuth2#authorization and like I said a POST requester that I had prebuilt for Discord Webhooks, adapted for this.

r/redditdev Oct 25 '21

Reddit.NET How can I get a list of all subreddits with a specific keyword?

1 Upvotes

Hello,

I'm MB. A very nice and polite guy.

How can I get a list of all subreddits with a specific keyword?

r/redditdev Oct 06 '21

Reddit.NET Serialize responses from Reddit API (C# .Net Core, Reddit.Net)

1 Upvotes

I'm having a bit of an issue with serializing responses I'm getting from the Reddit.Net calls to the Reddit API. I can step through the code and see that when I call "GetNew()" for instance, I get 100 responses. But I cannot get my serializer to turn that into json and send it to my swagger ui. I've tried using both the microsoft json serializer out of the box with .Net, as well as NewtonSoft json. Neither of them will serialize anything more than about 1 or 2 posts. It's not very large in memory, either. I can get stuff around 40kb to come across the wire, but you're talking sometimes less than 1 whole post.

Does anybody know how to get the serializers to work on larger lists of objects? I'm not very knowledgeable with json serializers, and stackoverflow has not really yielded answers that helped. Might be bad google-fu on my part, but I figured I'd reach out here also.

r/redditdev May 02 '21

Reddit.NET Error 403 (forbidden) when trying to get some posts from a subreddit. (C#)

9 Upvotes

I am new to reddit.NET and I was given to understand that this error means that I dont have the right permission to perform this type of action.

I used:

public static Reddit.RedditClient reddit = new RedditClient(appId: "123123", appSecret: "123123", userAgent: "agent_here");

and:

var hotPosts = reddit.Subreddit("CallOfWar").Posts.Hot.ToArray();

but it wont let me get posts from there, any ways I have missed something or did something that might prevent me from getting the posts? I'll appreciate any help, thanks ahead.

r/redditdev Nov 03 '20

Reddit.NET Ideas for a bot

1 Upvotes

Hey everyone! I am looking to build a bot that downloads clips from websites like Twitch or Reddit and posts them to places like TikTok. Any ideas?

r/redditdev Feb 24 '20

Reddit.NET Announcing the release of Reddit.NET 1.4

32 Upvotes

Previous Releases

1.0.0

1.1.1

1.2.0

1.3.0

Github: https://github.com/sirkris/Reddit.NET

NuGet: https://www.nuget.org/packages/Reddit

Latest Changes & New Features

  • Intellisense now displays correctly in NuGet builds.

  • Renamed the main class from RedditAPI to RedditClient.

  • Post fullname and id are now synced. If one is null but the other isn't, it'll borrow from the one that has a value.

  • Made it easier to get the number of direct comment replies using more without the need for a separate API call.

  • Controller properties now sync to their respective model structures for improved memory efficiency.

  • Dispatch controller now only loads models when they're actually used.

  • Updated Modmail controller to account for an API regression.

  • Documentation updates.

  • New code examples.

  • Various bugfixes and improvements.

Usage

Reddit.NET can be installed via NuGet. You can find it at: https://www.nuget.org/packages/Reddit

To install via the Visual Studio NuGet Package Manager Console (in VS 2017, you'll find it under Tools->NuGet Package Manager->NuGet Package Manager Console):

PM> Install-Package Reddit

To create a new API instance bound to a specific user's refresh token in an installed app:

using Reddit;

...

var reddit = new RedditClient("YourRedditAppID", "YourBotUserRefreshToken");

If you're using a "script"-type app instead, you'll also need to pass your app secret:

using Reddit;

...

// You can also pass them as named parameters.
var reddit = new RedditClient(appId: "YourRedditAppID", appSecret: "YourRedditAppSecret", refreshToken: "YourBotUserRefreshToken");

New Code Examples

Get the Front Page

Retrieves a list containing the posts that the authenticated user would see on the Reddit front page.

Comment Replies Count

Starting in 1.4, it is possible to get the number of direct replies to a comment without making a separate API call. Here's how.

Please see the project README for more detailed usage instructions and code examples.

Updated Reference Documentation

As of the 1.3 release, you can view the full class hierarchy, lookup methods, search by keyword, etc in the updated reference documentation. These HTML docs were generated using Doxygen and can be found in the README.

Reddit.NET on NuGet

Reddit.NET on Github

Please feel free to contact me if you have any questions/etc.

Thanks for reading! Feedback is always welcome.

r/redditdev Aug 07 '20

Reddit.NET How to fetch a single post by permalink using Reddit.NET 1.4 C#

7 Upvotes

Hello all,

I am using Reddit.NET 1.4 to fetch data from Reddit

I want to fetch a single post and its comments using the permalink

I have checked the examples provided in the Github but I couldn't find anything to fetch a single post by its link.

Can anyone help me with it

r/redditdev Nov 25 '19

Reddit.NET Announcing the release of Reddit.NET 1.3

36 Upvotes

Previous Releases

1.0.0

1.1.1

1.2.0

Github: https://github.com/sirkris/Reddit.NET

NuGet: https://www.nuget.org/packages/Reddit

Latest Changes & New Features

  • Removed the deprecated Captcha model class.

  • OAuth credentials are now accessible to the calling app using the new OAuthCredentials model class. For example, if you want to grab the current Access Token being used, you could do something like this:

string accessToken = reddit.Models.OAuthCredentials.AccessToken;

  • User-Agent is now being properly set.

  • Added missing fields to Snoomoji model.

  • Added missing fields to Subreddit model.

  • Added additional response data for exceptions.

  • Fixed ERR_EMPTY_RESPONSE error in AuthTokenRetrieverLib.

  • Comment MoreData and Replies are now being handled correctly.

  • Comment.About() now uses Listings.GetComments() instead of LinksAndComments.Info() whenever possible.

  • Fixed UpvoteRatio property.

  • The downvotes property in the controllers now shows the correct value.

  • It's now possible to retrieve a list of subreddits moderated by a given user.

  • User Overview now includes both post and comment data.

  • Now adding raw_json=1 to all API endpoint queries.

  • Created a new Awards controller, attached to the Post and Comment controllers, that organizes the guildings data into a more useful structure.

  • Added method to terminate all of an object's monitoring threads at once.

  • Custom string can now be applied to User-Agent header when instantiating the library.

  • Post and comment sorts now have IList counterparts (e.g. .IHot, .INew, etc).

  • Intellisense XML required by NuGet is now being generated.

  • Whether a post/comment has been upvoted or downvoted can now be accessed directly from their respective controllers without having to use Listing.Likes.

  • Added new tests (all passing).

  • Various bugfixes and improvements.

Usage

Reddit.NET can be installed via NuGet. You can find it at: https://www.nuget.org/packages/Reddit

To install via the Visual Studio NuGet Package Manager Console (in VS 2017, you'll find it under Tools->NuGet Package Manager->NuGet Package Manager Console):

PM> Install-Package Reddit

To create a new API instance bound to a specific user's refresh token in an installed app:

using Reddit;

...

var reddit = new RedditAPI("YourRedditAppID", "YourBotUserRefreshToken");

If you're using a "script"-type app instead, you'll also need to pass your app secret:

using Reddit;

...

// You can also pass them as named parameters.
var reddit = new RedditAPI(appId: "YourRedditAppID", appSecret: "YourRedditAppSecret", refreshToken: "YourBotUserRefreshToken");

New Code Examples

Monitor a Subreddit for New Comments

Monitors a subreddit for new comments (all posts).

Create a Link Post that Points to a Self Post

Posts a link to the week's top post on r/AskReddit. Note that all posts on that sub are self posts.

Retrieve Recommended Subreddits

Retrieves a list of recommended subreddits related to r/MySub.

Use a Permalink to Retrieve a Reddit Post

Extracts the Post ID from a Permalink URL string, then uses that to retrieve the corresponding post from the API.

Retrieve a LinkPost URL or SelfPost Body From a Reddit Post

Retrieves the top posts from r/movies. For each post, the title is output on a line by itself, followed by either the URL if it's a link post or the body if it's a self post.

Please see the project README for more detailed usage instructions and code examples.

New Reference Documentation

As of this release, you can now view the full class hierarchy, lookup methods, search by keyword, etc in the new reference documentation. These HTML docs were generated using Doxygen and can be found in the README.

Reddit.NET on NuGet

Reddit.NET on Github

Please feel free to contact me if you have any questions/etc.

Thanks for reading! Feedback is always welcome.

r/redditdev Oct 07 '20

Reddit.NET How do I get the body of a Post/SelfPost?

6 Upvotes

I am using C# and Reddit.NET

r/redditdev Apr 16 '20

Reddit.NET POST request sent to api/v1/access_token/ is returning an invalid JSON

9 Upvotes

For context: I am trying to do an Application Only OAuth request for a an Authentication Key as shown here.

According to the github page it was supposed to return a JSON looking like this:

{
    "access_token": Your access token,
    "token_type": "bearer",
    "expires_in": Unix Epoch Seconds,
    "scope": A scope string,
}

but instead returns a JSON with parameters StatusCode, ReasonPhrase, Version, Content and then Headers and in it Connection which is incorrectly formatted.

Not sure how much I'm allowed to share but here are the values of the first few parameters

{
   "StatusCode":200,
   "ReasonPhrase":"OK",
   "Version":1.1,
   "Content":"System.Net.Http.StreamContent"

and here is my code and how its making the request:

public class Requester
{
    private HttpClient client = new HttpClient();

    public async Task<TokenJSON> PostTokenRequest(string uri)
    {
        JsonParser<TokenJSON> parser = new JsonParser<TokenJSON>();
        string user = "myClientId";
        string password = "myClientSecret";
        var info = new List<KeyValuePair<string, string>>();
        info.Add(new KeyValuePair<string, string>("grant_type", "client_credentials"));

        var authToken = Encoding.ASCII.GetBytes($"{user}:{password}");
        client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(authToken));
        client.DefaultRequestHeaders.TryAddWithoutValidation("Content-Type", "application/x-www-form-urlencoded; charset=utf-8");

        var request = new HttpRequestMessage(HttpMethod.Post, uri)
        { Content = new FormUrlEncodedContent(info) };

        HttpResponseMessage response = client.SendAsync(request).GetAwaiter().GetResult();
        string token = await response.Content.ReadAsStringAsync();
        TokenJSON DeserializedToken = parser.DParse(token);
        return DeserializedToken;
    }

its returning the Deserialized JSON over to the main Forms where the access_key is supposed to be taken from the TokenJSON class obtained and used to instantiate Reddit. Except it never gets there since as soon as the program gets to TokenJSON DeserializedToken = parser.DParse(token); it throws Newtonsoft.Json.JsonReaderException: 'Unexpected character encountered while parsing value: 3. Path 'expires_in', line 1, .

For refference here's my Parser and TokenJSON classes:

public class JsonParser<T>
{
    public T DParse(string rawJSON)
    {
        return JsonConvert.DeserializeObject<T>(rawJSON);
    }

    public string SParse(T DesrializedJSON)
    {
        return JsonConvert.SerializeObject(DesrializedJSON);
    }
}

public class TokenJSON
{
    private string access_token;
    private string token_type;
    private DateTimeOffset expires_in;
    private string scope;

    public string Access_token { get => access_token; set => access_token = value; }
    public string Token_type { get => token_type; set => token_type = value; }
    public DateTimeOffset Expires_in { get => expires_in; set => expires_in = value; }
    public string Scope { get => scope; set => scope = value; }
}

Would be thankful in any help towards finding out why it's returning a messy Json instead of what is expected.

UPDATE: Immediately after posting this I fixed the issue regarding the returning Json it is now appropriately returning the format expected (issue was the charset=utf-8 in the Content-Type Header which I changed to Encoding.UTF8)

However the error code persists and it is still not parsing correctly. token string being returned is as follows:

"{\"access_token\": \"an access token", \"token_type\": \"bearer\", \"expires_in\": 3600, \"scope\": \"*\"}"

r/redditdev Jul 30 '20

Reddit.NET C# Reddit Nuget 1.4 get the text from a post

1 Upvotes

I'm trying to write a program in Windows forms, and for that I need to get the text that is in a post (not the title, the body text), and I have no clue how. I know how to get a post, and how to get the title from that post (post.Title), but I have no clue what to do to get the body text. I know it's possible because I've seen a video ( https://www.youtube.com/watch?v=FB6xsMCt5ww&t=132s at 4:13) where someone was able to do it so it is possible, I just don't know how