{"action":"created","issue":{"url":"https://api.github.com/repos/berkmancenter/mediacloud/issues/357","repository_url":"https://api.github.com/repos/berkmancenter/mediacloud","labels_url":"https://api.github.com/repos/berkmancenter/mediacloud/issues/357/labels{/name}","comments_url":"https://api.github.com/repos/berkmancenter/mediacloud/issues/357/comments","events_url":"https://api.github.com/repos/berkmancenter/mediacloud/issues/357/events","html_url":"https://github.com/berkmancenter/mediacloud/issues/357","id":313521169,"number":357,"title":"Can't retrieve list of timespans?","user":{"login":"AnuraagNalluri","id":15059525,"avatar_url":"https://avatars1.githubusercontent.com/u/15059525?v=4","gravatar_id":"","url":"https://api.github.com/users/AnuraagNalluri","html_url":"https://github.com/AnuraagNalluri","followers_url":"https://api.github.com/users/AnuraagNalluri/followers","following_url":"https://api.github.com/users/AnuraagNalluri/following{/other_user}","gists_url":"https://api.github.com/users/AnuraagNalluri/gists{/gist_id}","starred_url":"https://api.github.com/users/AnuraagNalluri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnuraagNalluri/subscriptions","organizations_url":"https://api.github.com/users/AnuraagNalluri/orgs","repos_url":"https://api.github.com/users/AnuraagNalluri/repos","events_url":"https://api.github.com/users/AnuraagNalluri/events{/privacy}","received_events_url":"https://api.github.com/users/AnuraagNalluri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-11T23:25:09Z","updated_at":"2018-04-11T23:31:17Z","closed_at":null,"author_association":"NONE","body":"Hi, \r\n\r\nI've been trying to query a list of timespans to use in my queries, but cannot seem to do so. As per the API, I've been making a request call as follows: \r\n\r\n```\r\n    params = {\r\n        'snapshots_id':'5',\r\n        'key': MY_API_KEY\r\n    }\r\n\r\n    r = requests.get( 'https://api.mediacloud.org/api/v2/timespans/list', params= params, headers = { 'Accept': 'application/json'})\r\n    data = r.json()\r\n    print (data)\r\n```\r\nBut this produces the following error: \r\n```\r\nraise ValueError(errmsg(\"Expecting value\", s, err.value)) from None\r\nValueError: Expecting value: line 1 column 1 (char 0)\r\n```\r\nThis ValueError is thrown by the line where I attempt to retrieve the data in json format as the timespans should be able to be encoded by.\r\n\r\nAny tips on how to go about fixing this? \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/berkmancenter/mediacloud/issues/comments/380627406","html_url":"https://github.com/berkmancenter/mediacloud/issues/357#issuecomment-380627406","issue_url":"https://api.github.com/repos/berkmancenter/mediacloud/issues/357","id":380627406,"user":{"login":"hroberts","id":1830735,"avatar_url":"https://avatars2.githubusercontent.com/u/1830735?v=4","gravatar_id":"","url":"https://api.github.com/users/hroberts","html_url":"https://github.com/hroberts","followers_url":"https://api.github.com/users/hroberts/followers","following_url":"https://api.github.com/users/hroberts/following{/other_user}","gists_url":"https://api.github.com/users/hroberts/gists{/gist_id}","starred_url":"https://api.github.com/users/hroberts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hroberts/subscriptions","organizations_url":"https://api.github.com/users/hroberts/orgs","repos_url":"https://api.github.com/users/hroberts/repos","events_url":"https://api.github.com/users/hroberts/events{/privacy}","received_events_url":"https://api.github.com/users/hroberts/received_events","type":"User","site_admin":false},"created_at":"2018-04-11T23:31:17Z","updated_at":"2018-04-11T23:31:17Z","author_association":"MEMBER","body":"we should certainly be returning a sane error message, but that is not a valid snapshots_id.  where are you getting the id from?"}}
{"actor":{"display_login":"hroberts"}}