code: def add_flair_template(self, subreddit, text='', css_class='',
                             text_editable=False, is_link=False):
          
          data = {'r': six.text_type(subreddit),
                  'text': text,
                  'css_class': css_class,
                  'text_editable': six.text_type(text_editable),
                  'flair_type': 'LINK_FLAIR' if is_link else 'USER_FLAIR'}
          return self.request_json(self.config['flairtemplate'], data=data)
docs: Add a flair template to the given subreddit.
  
          :returns: The json response from the server.