#NEWLINE# def create_article( self , title , description , defined_type = 'dataset' ) : #NEWLINE# #INDENT# '\n        Create an article.\n\n        `title`, `description` are required; other `defined_type` value can be\n        "fileset".  There are likely others (e.g., "figure", "code", "media",\n        etc) but these are currently undocumented by the API, so use at your\n        own risk.\n        ' #NEWLINE# response = self . client . post ( ( self . endpoint + '/articles' ) , data = json . dumps ( { #NEWLINE# #INDENT# 'title' : response , #NEWLINE# 'description' : description , #NEWLINE# 'defined_type' : defined_type , #NEWLINE# #UNINDENT# } ) , headers = { #NEWLINE# #INDENT# 'content-type' : 'application/json' , #NEWLINE# #UNINDENT# } ) #NEWLINE# return response . json ( )