Skip to content

Commit

Permalink
can't retrieve activity item
Browse files Browse the repository at this point in the history
  • Loading branch information
ihor-nahuliak committed Jul 29, 2019
1 parent 0d30d16 commit 8b3a740
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 63 deletions.
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,3 @@ activities_list = hubstaff.get_activities_list(
organization_id_list=[123, 456],
project_id_list=[123, 456])
```

Take activity item:
```python
activity_item = hubstaff.get_activity_item(activity_id=123)
```
6 changes: 0 additions & 6 deletions hubstaff/client_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class HubstaffClient:
tasks_list_endpoint = '/tasks'
task_item_endpoint = '/tasks/%s'
activities_list_endpoint = '/activities'
activity_item_endpoint = '/activities/%s'

def __init__(self, app_token, auth_token=None,
username=None, password=None):
Expand Down Expand Up @@ -184,8 +183,3 @@ def get_activities_list(self, from_, to_,

activities_list = result['activities']
return activities_list

def get_activity_item(self, activity_id):
result = self._get(self.activity_item_endpoint % activity_id)
activity_item = result['activity']
return activity_item
52 changes: 0 additions & 52 deletions tests/test_v1_activity_item_integration.py

This file was deleted.

0 comments on commit 8b3a740

Please sign in to comment.