About PostClient
Client for post browsing has several times more methods than other clients.
That applies to browse_posts()
method too.
Browsing posts with post client
Here simple code snippet with post browsing:
In the example above we specified:
- amount of posts that we want to fetch;
- rule which will be used to sort posts before fetching;
- date range of posts;
- tags by which posts will be filtered;
- type of posts (e.g. gif, images or video);
- content rating of posts (safe, questionable or explicit (nsfw)).
Getting specific post by its ID
You can get specific post by its ID like that:
About the remaining methods
Almost all the remaining methods inside their definitions invoke method browse_posts()
with certain arguments so there is no need to thoroughly consider them.
But it's worth mentioning that methods get_recommended_posts()
and
get_favorited_posts()
require authorization.