Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added a function that returns submission's metadata if you pass a csv… #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

patmay
Copy link

@patmay patmay commented Jan 22, 2017

… string of reddit fullnames

Copy link
Owner

@jzelinskie jzelinskie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!


// SubmissionInfo fetches the metadata for a string of comma-separated fullnames
// (e.g,"t3_5pbezh,t3_5pbezh"). Uses https://www.reddit.com/dev/api/#GET_by_id_{names}
func (s Session) SubmissionInfo(fullnameList string) ([]*Submission, error) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather the parameter have more structure by requiring a []string and we join that inside the function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants