reddit

package
v0.0.0-...-3f52ee8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2023 License: BSD-3-Clause Imports: 12 Imported by: 0

README

This package was inspired by https://github.com/D3vd/Meme_Api.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	AccessToken  string
	ClientID     string
	ClientSecret string
	UserAgent    string
	// contains filtered or unexported fields
}

func New

func New(userAgent string) (*Client, error)

func (*Client) GetNPosts

func (c *Client) GetNPosts(
	subreddit string,
	filter string,
	after string,
	count int,
) ([]*models.Meme, string, error)

GetNPosts : Get (N) no. of posts from Reddit with Subreddit Name and Limit

func (*Client) PinMeme

func (c *Client) PinMeme(s *ipfs.Shell, meme *models.Meme) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL