Ejemplo n.º 1
0
 /// <summary>
 /// Subscribe to or unsubscribe from a subreddit asynchronously.
 /// To subscribe, action should be sub.  To unsubscribe, action should be unsub.The user must have access to the subreddit to be able to subscribe to it.
 /// The skip_initial_defaults param can be set to True to prevent automatically subscribing the user to the current set of defaults when they take their first subscription action.
 /// Attempting to set it for an unsubscribe action will result in an error.
 /// See also: /subreddits/mine/.
 /// </summary>
 /// <param name="subredditsSubByFullnameInput">A valid SubredditsSubByFullnameInput instance</param>
 public async Task SubscribeByFullnameAsync(SubredditsSubByFullnameInput subredditsSubByFullnameInput)
 {
     await SendRequestAsync <object>("api/subscribe", subredditsSubByFullnameInput, Method.POST);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Subscribe to or unsubscribe from a subreddit.
 /// To subscribe, action should be sub.  To unsubscribe, action should be unsub.The user must have access to the subreddit to be able to subscribe to it.
 /// The skip_initial_defaults param can be set to True to prevent automatically subscribing the user to the current set of defaults when they take their first subscription action.
 /// Attempting to set it for an unsubscribe action will result in an error.
 /// See also: /subreddits/mine/.
 /// </summary>
 /// <param name="subredditsSubByFullnameInput">A valid SubredditsSubByFullnameInput instance</param>
 public void SubscribeByFullname(SubredditsSubByFullnameInput subredditsSubByFullnameInput)
 {
     SendRequest <object>("api/subscribe", subredditsSubByFullnameInput, Method.POST);
 }