{"action":"closed","issue":{"url":"https://api.github.com/repos/Esri/ArcREST/issues/74","labels_url":"https://api.github.com/repos/Esri/ArcREST/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/Esri/ArcREST/issues/74/comments","events_url":"https://api.github.com/repos/Esri/ArcREST/issues/74/events","html_url":"https://github.com/Esri/ArcREST/issues/74","id":103322181,"number":74,"title":"AttributeError: 'Content' object has no attribute 'usercontent'","user":{"login":"luapknarf","id":13970488,"avatar_url":"https://avatars.githubusercontent.com/u/13970488?v=3","gravatar_id":"","url":"https://api.github.com/users/luapknarf","html_url":"https://github.com/luapknarf","followers_url":"https://api.github.com/users/luapknarf/followers","following_url":"https://api.github.com/users/luapknarf/following{/other_user}","gists_url":"https://api.github.com/users/luapknarf/gists{/gist_id}","starred_url":"https://api.github.com/users/luapknarf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luapknarf/subscriptions","organizations_url":"https://api.github.com/users/luapknarf/orgs","repos_url":"https://api.github.com/users/luapknarf/repos","events_url":"https://api.github.com/users/luapknarf/events{/privacy}","received_events_url":"https://api.github.com/users/luapknarf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-26T17:11:11Z","updated_at":"2015-08-26T18:49:20Z","closed_at":"2015-08-26T18:49:20Z","body":"Hello,\r\n\r\nI am new to ArcRest and somewhat new to github so please bear with me.  The sample python code for uploading csv files looks promising, but I running into this error.  \r\n\r\nAlso, I am not acquainted with how to go about using the documentation for ArcRest nor can I find a lot about that.  Perhaps it is due to my lack of experience on github but I would welcome any pointers.\r\n\r\nI was also hoping to use this code to upload other file types like pdf.  Perhaps I can use your code for getting authentication, and the Arc REST API for the other code.\r\n\r\nThanks!\r\n```\r\nimport arcrest\r\n\r\nif __name__ == \"__main__\":\r\n    username = \"my username\"\r\n    password = \"my password\"\r\n    csv_file = r\"C:\\events.csv\"\r\n\r\n    sh = arcrest.AGOLTokenSecurityHandler(username, password)\r\n    admin = arcrest.manageorg.Administration(securityHandler=sh)\r\n    content = admin.content\r\n    usercontent = content.usercontent(username=username)\r\n    ip = arcrest.manageorg.ItemParameter()\r\n    ip.title = \"Sample CSV\"\r\n    ip.type = \"CSV\"\r\n    ip.tags = \"tag1,tag3\"\r\n    res = usercontent.addItem(itemParameters=ip,\r\n                              filePath=csv_file)\r\n    itemId = res['id']\r\n\r\n    #  Now you need to analyze the item to publish it\r\n    #\r\n    featureContent = content.featureContent\r\n    analyzeParams = arcrest.manageorg.AnalyzeParameters()\r\n    analyzeResult = featureContent.analyze(itemId=itemId, analyzeParameters=analyzeParams)\r\n    #  Published based off the analyze function\r\n    #\r\n    if 'publishParameters' in analyzeResult:\r\n        pp = analyzeResult['publishParameters']\r\n        publishParams = arcrest.manageorg.PublishCSVParameters(name=pp['name'],\r\n                                               locationType=pp['locationType'],\r\n                                               layerInfo=pp['layerInfo'],\r\n                                               latitudeFieldName=pp[\"latitudeFieldName\"],\r\n                                               longitudeFieldName=pp['longitudeFieldName'])\r\n        print usercontent.publishItem(fileType=\"csv\",\r\n                                      publishParameters=publishParams,\r\n                                      itemId=itemId)\r\n```"}}