code: func (o *OAuthSession) SubredditSubmissions(subreddit string, sort PopularitySort, params ListingOptions) ([]*Submission, error) {
  	v, err := query.Values(params)
  	if err != nil {
  		return nil, err
  	}
  
  	baseUrl := "https://oauth.reddit.com"
  
  	// If subbreddit given, add to URL
  	if subreddit != "" {
  		baseUrl += "/r/" + subreddit
  	}
  
  	redditURL := fmt.Sprintf(baseUrl+"/%s.json?%s", sort, v.Encode())
  
  	type Response struct {
  		Data struct {
  			Children []struct {
  				Data *Submission
  			}
  		}
  	}
  
  	r := new(Response)
  	err = o.getBody(redditURL, r)
  	if err != nil {
  		return nil, err
  	}
  
  	submissions := make([]*Submission, len(r.Data.Children))
  	for i, child := range r.Data.Children {
  		submissions[i] = child.Data
  	}
  
  	return submissions, nil
  }
docs: // SubredditSubmissions returns the submissions on the given subreddit using OAuth.