{"action":"created","issue":{"url":"https://api.github.com/repos/tobias-reese/timeular-api/issues/1","repository_url":"https://api.github.com/repos/tobias-reese/timeular-api","labels_url":"https://api.github.com/repos/tobias-reese/timeular-api/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/tobias-reese/timeular-api/issues/1/comments","events_url":"https://api.github.com/repos/tobias-reese/timeular-api/issues/1/events","html_url":"https://github.com/tobias-reese/timeular-api/issues/1","id":363283835,"node_id":"MDU6SXNzdWUzNjMyODM4MzU=","number":1,"title":"Getting started","user":{"login":"maehw","id":6305922,"node_id":"MDQ6VXNlcjYzMDU5MjI=","avatar_url":"https://avatars3.githubusercontent.com/u/6305922?v=4","gravatar_id":"","url":"https://api.github.com/users/maehw","html_url":"https://github.com/maehw","followers_url":"https://api.github.com/users/maehw/followers","following_url":"https://api.github.com/users/maehw/following{/other_user}","gists_url":"https://api.github.com/users/maehw/gists{/gist_id}","starred_url":"https://api.github.com/users/maehw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maehw/subscriptions","organizations_url":"https://api.github.com/users/maehw/orgs","repos_url":"https://api.github.com/users/maehw/repos","events_url":"https://api.github.com/users/maehw/events{/privacy}","received_events_url":"https://api.github.com/users/maehw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-24T19:16:24Z","updated_at":"2018-09-24T20:09:36Z","closed_at":null,"author_association":"NONE","body":"Hi there!\r\n\r\nFirst, thank you for your code contributions. I'm trying to get get it running here. However, I have to admit that I am not a Python programmer (yet).\r\n\r\nI got the example working by using\r\n```\r\nauth_api_instance = timeular_api.AuthenticationApi()\r\nauth_api_key_and_api_secret = timeular_api.DeveloperSignInRequest(api_key='my_api_key', api_secret='my_api_secret')\r\n```\r\n\r\nI do get a token back. However, I fail when trying to continue... Can you please give another example?\r\nWhat would a call of the TimeTrackingActivitiesApi to get_activities look like?\r\n\r\nI can only get:\r\n`HTTP response body: {\"message\":\"Authorization token is invalid\"}`\r\n\r\nI the token relevant for a call? Nor using my API key neither my token works with the example code given in TimeTrackingActivitiesApi.md#get_activities.\r\n\r\n```\r\nconfiguration = timeular_api.Configuration()\r\nconfiguration.api_key['Authorization'] = 'YOUR_API_KEY'\r\n```\r\n\r\nI'd be happy if you could help here.\r\n\r\nKinds regards,\r\nMatthias"},"comment":{"url":"https://api.github.com/repos/tobias-reese/timeular-api/issues/comments/424107822","html_url":"https://github.com/tobias-reese/timeular-api/issues/1#issuecomment-424107822","issue_url":"https://api.github.com/repos/tobias-reese/timeular-api/issues/1","id":424107822,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDEwNzgyMg==","user":{"login":"maehw","id":6305922,"node_id":"MDQ6VXNlcjYzMDU5MjI=","avatar_url":"https://avatars3.githubusercontent.com/u/6305922?v=4","gravatar_id":"","url":"https://api.github.com/users/maehw","html_url":"https://github.com/maehw","followers_url":"https://api.github.com/users/maehw/followers","following_url":"https://api.github.com/users/maehw/following{/other_user}","gists_url":"https://api.github.com/users/maehw/gists{/gist_id}","starred_url":"https://api.github.com/users/maehw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maehw/subscriptions","organizations_url":"https://api.github.com/users/maehw/orgs","repos_url":"https://api.github.com/users/maehw/repos","events_url":"https://api.github.com/users/maehw/events{/privacy}","received_events_url":"https://api.github.com/users/maehw/received_events","type":"User","site_admin":false},"created_at":"2018-09-24T20:09:36Z","updated_at":"2018-09-24T20:09:36Z","author_association":"NONE","body":"Hey Tobias,\r\n\r\nthanks for your help.\r\n\r\nI've tried to use `get_time_entries_in_range` and failed again.\r\n\r\n```\r\nstopped_after = '2018-01-01T00:00:00.000'\r\nstarted_before = '2018-12-31T23:59:59.999'\r\napi_response = api_instance.get_time_entries_in_range(stopped_after, started_before)\r\n```\r\n\r\nHere's my traceback:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"test.py\", line 25, in <module>\r\n    api_response = api_instance.get_time_entries_in_range(stopped_after, started_before)\r\n  File \"/home/matthias/repos/timeular-api/timeular_api/api/time_tracking__time_entries_api.py\", line 351, in get_time_entries_in_range\r\n    (data) = self.get_time_entries_in_range_with_http_info(stopped_after, started_before, **kwargs)  # noqa: E501\r\n  File \"/home/matthias/repos/timeular-api/timeular_api/api/time_tracking__time_entries_api.py\", line 436, in get_time_entries_in_range_with_http_info\r\n    collection_formats=collection_formats)\r\n  File \"/home/matthias/repos/timeular-api/timeular_api/api_client.py\", line 322, in call_api\r\n    _preload_content, _request_timeout)\r\n  File \"/home/matthias/repos/timeular-api/timeular_api/api_client.py\", line 161, in __call_api\r\n    return_data = self.deserialize(response_data, response_type)\r\n  File \"/home/matthias/repos/timeular-api/timeular_api/api_client.py\", line 233, in deserialize\r\n    return self.__deserialize(data, response_type)\r\n  File \"/home/matthias/repos/timeular-api/timeular_api/api_client.py\", line 272, in __deserialize\r\n    return self.__deserialize_model(data, klass)\r\n  File \"/home/matthias/repos/timeular-api/timeular_api/api_client.py\", line 613, in __deserialize_model\r\n    kwargs[attr] = self.__deserialize(value, attr_type)\r\n  File \"/home/matthias/repos/timeular-api/timeular_api/api_client.py\", line 250, in __deserialize\r\n    for sub_data in data]\r\n  File \"/home/matthias/repos/timeular-api/timeular_api/api_client.py\", line 272, in __deserialize\r\n    return self.__deserialize_model(data, klass)\r\n  File \"/home/matthias/repos/timeular-api/timeular_api/api_client.py\", line 613, in __deserialize_model\r\n    kwargs[attr] = self.__deserialize(value, attr_type)\r\n  File \"/home/matthias/repos/timeular-api/timeular_api/api_client.py\", line 272, in __deserialize\r\n    return self.__deserialize_model(data, klass)\r\n  File \"/home/matthias/repos/timeular-api/timeular_api/api_client.py\", line 613, in __deserialize_model\r\n    kwargs[attr] = self.__deserialize(value, attr_type)\r\n  File \"/home/matthias/repos/timeular-api/timeular_api/api_client.py\", line 264, in __deserialize\r\n    return self.__deserialize_primitive(data, klass)\r\n  File \"/home/matthias/repos/timeular-api/timeular_api/api_client.py\", line 544, in __deserialize_primitive\r\n    return six.u(data)\r\n  File \"/usr/lib/python2.7/dist-packages/six.py\", line 647, in u\r\n    return unicode(s.replace(r'\\\\', r'\\\\\\\\'), \"unicode_escape\")\r\nTypeError: decoding Unicode is not supported\r\n```\r\n\r\nI have tried to use single ticks, double quotes, ... stuff like u'...' - I don't really know what's going on - but it seems that it's related to string encoding. Can you please help out once more?\r\n\r\nI don't know if it's relevant, but:\r\n```\r\n$ python --version\r\nPython 2.7.12\r\n```\r\n\r\nUsing another API call like the following works like a charm (I figured out the ID from the ics export):\r\n```\r\ntime_entry_id = '987' # str | ID of a Time Entry, eg. `987`\r\napi_instance.get_time_entry(time_entry_id)\r\n\r\n```\r\n\r\nKind regards,\r\nMatthias\r\n\r\n\r\n"}}
{"actor":{"display_login":"maehw"}}