/// <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="subredditsSubByNameInput">A valid SubredditsSubByNameInput instance</param> public async Task SubscribeAsync(SubredditsSubByNameInput subredditsSubByNameInput) { await SendRequestAsync <object>("api/subscribe", subredditsSubByNameInput, Method.POST); }
/// <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="subredditsSubByNameInput">A valid SubredditsSubByNameInput instance</param> public void Subscribe(SubredditsSubByNameInput subredditsSubByNameInput) { SendRequest <object>("api/subscribe", subredditsSubByNameInput, Method.POST); }