<s> """<STR_LIT>""" <EOL> import sys <EOL> import os <EOL> from models import * <EOL> class WordListApi ( object ) : <EOL> def __init__ ( self , apiClient ) : <EOL> self . apiClient = apiClient <EOL> def updateWordList ( self , permalink , auth_token , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> allParams = [ '<STR_LIT>' , '<STR_LIT:body>' , '<STR_LIT>' ] <EOL> params = locals ( ) <EOL> for ( key , val ) in params [ '<STR_LIT>' ] . iteritems ( ) : <EOL> if key not in allParams : <EOL> raise TypeError ( "<STR_LIT>" % key ) <EOL> params [ key ] = val <EOL> del params [ '<STR_LIT>' ] <EOL> resourcePath = '<STR_LIT>' <EOL> resourcePath = resourcePath . replace ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> method = '<STR_LIT>' <EOL> queryParams = { } <EOL> headerParams = { } <EOL> if ( '<STR_LIT>' in params ) : <EOL> headerParams [ '<STR_LIT>' ] = params [ '<STR_LIT>' ] <EOL> if ( '<STR_LIT>' in params ) : <EOL> replacement = str ( self . apiClient . toPathValue ( params [ '<STR_LIT>' ] ) ) <EOL> resourcePath = resourcePath . replace ( '<STR_LIT:{>' + '<STR_LIT>' + '<STR_LIT:}>' , <EOL> replacement ) <EOL> postData = ( params [ '<STR_LIT:body>' ] if '<STR_LIT:body>' in params else None ) <EOL> response = self . apiClient . callAPI ( resourcePath , method , queryParams , <EOL> postData , headerParams ) <EOL> def deleteWordList ( self , permalink , auth_token , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> allParams = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> params = locals ( ) <EOL> for ( key , val ) in params [ '<STR_LIT>' ] . iteritems ( ) : <EOL> if key not in allParams : <EOL> raise TypeError ( "<STR_LIT>" % key ) <EOL> params [ key ] = val <EOL> del params [ '<STR_LIT>' ] <EOL> resourcePath = '<STR_LIT>' <EOL> resourcePath = resourcePath . replace ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> method = '<STR_LIT>' <EOL> queryParams = { } <EOL> headerParams = { } <EOL> if ( '<STR_LIT>' in params ) : <EOL> headerParams [ '<STR_LIT>' ] = params [ '<STR_LIT>' ] <EOL> if ( '<STR_LIT>' in params ) : <EOL> replacement = str ( self . apiClient . toPathValue ( params [ '<STR_LIT>' ] ) ) <EOL> resourcePath = resourcePath . replace ( '<STR_LIT:{>' + '<STR_LIT>' + '<STR_LIT:}>' , <EOL> replacement ) <EOL> postData = ( params [ '<STR_LIT:body>' ] if '<STR_LIT:body>' in params else None ) <EOL> response = self . apiClient . callAPI ( resourcePath , method , queryParams , <EOL> postData , headerParams ) <EOL> def getWordListByPermalink ( self , permalink , auth_token , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> allParams = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> params = locals ( ) <EOL> for ( key , val ) in params [ '<STR_LIT>' ] . iteritems ( ) : <EOL> if key not in allParams : <EOL> raise TypeError ( "<STR_LIT>" % key ) <EOL> params [ key ] = val <EOL> del params [ '<STR_LIT>' ] <EOL> resourcePath = '<STR_LIT>' <EOL> resourcePath = resourcePath . replace ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> method = '<STR_LIT:GET>' <EOL> queryParams = { } <EOL> headerParams = { } <EOL> if ( '<STR_LIT>' in params ) : <EOL> headerParams [ '<STR_LIT>' ] = params [ '<STR_LIT>' ] <EOL> if ( '<STR_LIT>' in params ) : <EOL> replacement = str ( self . apiClient . toPathValue ( params [ '<STR_LIT>' ] ) ) <EOL> resourcePath = resourcePath . replace ( '<STR_LIT:{>' + '<STR_LIT>' + '<STR_LIT:}>' , <EOL> replacement ) <EOL> postData = ( params [ '<STR_LIT:body>' ] if '<STR_LIT:body>' in params else None ) <EOL> response = self . apiClient . callAPI ( resourcePath , method , queryParams , <EOL> postData , headerParams ) <EOL> if not response : <EOL> return None <EOL> responseObject = self . apiClient . deserialize ( response , '<STR_LIT>' ) <EOL> return responseObject <EOL> def addWordsToWordList ( self , permalink , auth_token , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> allParams = [ '<STR_LIT>' , '<STR_LIT:body>' , '<STR_LIT>' ] <EOL> params = locals ( ) <EOL> for ( key , val ) in params [ '<STR_LIT>' ] . iteritems ( ) : <EOL> if key not in allParams : <EOL> raise TypeError ( "<STR_LIT>" % key ) <EOL> params [ key ] = val <EOL> del params [ '<STR_LIT>' ] <EOL> resourcePath = '<STR_LIT>' <EOL> resourcePath = resourcePath . replace ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> method = '<STR_LIT:POST>' <EOL> queryParams = { } <EOL> headerParams = { } <EOL> if ( '<STR_LIT>' in params ) : <EOL> headerParams [ '<STR_LIT>' ] = params [ '<STR_LIT>' ] <EOL> if ( '<STR_LIT>' in params ) : <EOL> replacement = str ( self . apiClient . toPathValue ( params [ '<STR_LIT>' ] ) ) <EOL> resourcePath = resourcePath . replace ( '<STR_LIT:{>' + '<STR_LIT>' + '<STR_LIT:}>' , <EOL> replacement ) <EOL> postData = ( params [ '<STR_LIT:body>' ] if '<STR_LIT:body>' in params else None ) <EOL> response = self . apiClient . callAPI ( resourcePath , method , queryParams , <EOL> postData , headerParams ) <EOL> def getWordListWords ( self , permalink , auth_token , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> allParams = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> params = locals ( ) <EOL> for ( key , val ) in params [ '<STR_LIT>' ] . iteritems ( ) : <EOL> if key not in allParams : <EOL> raise TypeError ( "<STR_LIT>" % key ) <EOL> params [ key ] = val <EOL> del params [ '<STR_LIT>' ] <EOL> resourcePath = '<STR_LIT>' <EOL> resourcePath = resourcePath . replace ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> method = '<STR_LIT:GET>' <EOL> queryParams = { } <EOL> headerParams = { } <EOL> if ( '<STR_LIT>' in params ) : <EOL> queryParams [ '<STR_LIT>' ] = self . apiClient . toPathValue ( params [ '<STR_LIT>' ] ) <EOL> if ( '<STR_LIT>' in params ) : <EOL> queryParams [ '<STR_LIT>' ] = self . apiClient . toPathValue ( params [ '<STR_LIT>' ] ) <EOL> if ( '<STR_LIT>' in params ) : <EOL> queryParams [ '<STR_LIT>' ] = self . apiClient . toPathValue ( params [ '<STR_LIT>' ] ) <EOL> if ( '<STR_LIT>' in params ) : <EOL> queryParams [ '<STR_LIT>' ] = self . apiClient . toPathValue ( params [ '<STR_LIT>' ] ) <EOL> if ( '<STR_LIT>' in params ) : <EOL> headerParams [ '<STR_LIT>' ] = params [ '<STR_LIT>' ] <EOL> if ( '<STR_LIT>' in params ) : <EOL> replacement = str ( self . apiClient . toPathValue ( params [ '<STR_LIT>' ] ) ) <EOL> resourcePath = resourcePath . replace ( '<STR_LIT:{>' + '<STR_LIT>' + '<STR_LIT:}>' , <EOL> replacement ) <EOL> postData = ( params [ '<STR_LIT:body>' ] if '<STR_LIT:body>' in params else None ) <EOL> response = self . apiClient . callAPI ( resourcePath , method , queryParams , <EOL> postData , headerParams ) <EOL> if not response : <EOL> return None <EOL> responseObject = self . apiClient . deserialize ( response , '<STR_LIT>' ) <EOL> return responseObject <EOL> def deleteWordsFromWordList ( self , permalink , auth_token , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> allParams = [ '<STR_LIT>' , '<STR_LIT:body>' , '<STR_LIT>' ] <EOL> params = locals ( ) <EOL> for ( key , val ) in params [ '<STR_LIT>' ] . iteritems ( ) : <EOL> if key not in allParams : <EOL> raise TypeError ( "<STR_LIT>" % key ) <EOL> params [ key ] = val <EOL> del params [ '<STR_LIT>' ] <EOL> resourcePath = '<STR_LIT>' <EOL> resourcePath = resourcePath . replace ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> method = '<STR_LIT:POST>' <EOL> queryParams = { } <EOL> headerParams = { } <EOL> if ( '<STR_LIT>' in params ) : <EOL> headerParams [ '<STR_LIT>' ] = params [ '<STR_LIT>' ] <EOL> if ( '<STR_LIT>' in params ) : <EOL> replacement = str ( self . apiClient . toPathValue ( params [ '<STR_LIT>' ] ) ) <EOL> resourcePath = resourcePath . replace ( '<STR_LIT:{>' + '<STR_LIT>' + '<STR_LIT:}>' , <EOL> replacement ) <EOL> postData = ( params [ '<STR_LIT:body>' ] if '<STR_LIT:body>' in params else None ) <EOL> response = self . apiClient . callAPI ( resourcePath , method , queryParams , <EOL> postData , headerParams ) </s>
