code: def subscribe(self, subreddit, unsubscribe=False):
          
          data = {'action': 'unsub' if unsubscribe else 'sub',
                  'sr_name': six.text_type(subreddit)}
          response = self.request_json(self.config['subscribe'], data=data)
          self.evict(self.config['my_subreddits'])
          return response
docs: Subscribe to the given subreddit.
  
          :param subreddit: Either the subreddit name or a subreddit object.
          :param unsubscribe: When True, unsubscribe.
          :returns: The json response from the server.