def save(self, unsave=False):
        """Save the object.

        :returns: The json response from the server.

        """
        url = self.reddit_session.config['unsave' if unsave else 'save']
        data = {'id': self.fullname,
                'executed': 'unsaved' if unsave else 'saved'}
        response = self.reddit_session.request_json(url, data=data)
        self.reddit_session.evict(self.reddit_session.config['saved'])
        return response
def save ( self , unsave = False ) : url = self . reddit_session . config [ 'unsave' if unsave else 'save' ] data = { 'id' : self . fullname , 'executed' : 'unsaved' if unsave else 'saved' } response = self . reddit_session . request_json ( url , data = data ) self . reddit_session . evict ( self . reddit_session . config [ 'saved' ] ) return response
Save the object.

        :returns: The json response from the server.