Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Teamwork API implementaion #181

Open
ishifoev opened this issue Oct 13, 2022 · 4 comments
Open

Teamwork API implementaion #181

ishifoev opened this issue Oct 13, 2022 · 4 comments
Assignees

Comments

@ishifoev
Copy link
Contributor

ishifoev commented Oct 13, 2022

Read API doc how to install, how all of this process working, but I give this like a credentials wrong. I think some problem from Teamwork.

{"STATUS":"Error","MESSAGE":"401: Not authorized"}

@ishifoev
Copy link
Contributor Author

Have a problem with API token that I am working it give me 401 weird honestly.

@ishifoev
Copy link
Contributor Author

The customer now answering me. But I find solution how to fix this that API will work. The documentation CURL is wrong for API doc. But we need something like this.

curl -u username:password https://pondersource.teamwork.com/tasks.json \
  --header 'Content-Type: application/json'

@ishifoev
Copy link
Contributor Author

It is working for now. I am fetching result.

{
    "STATUS": "OK",
    "todo-items": [
        {
            "id": 714453,
            "canComplete": true,
            "comments-count": 0,
            "description": "",
            "has-reminders": false,
            "has-unread-comments": false,
            "private": 0,
            "content": "Working with QuickBooks and Heroku working. Start working with TeamWork",
            "order": 2001,
            "decimalOrder": 0,
            "project-id": 50613,
            "project-name": "Task TimeTracking",
            "todo-list-id": 92298,
            "todo-list-name": "Test",
            "tasklist-private": false,
            "tasklist-isTemplate": false,
            "status": "new",
            "company-name": "PonderSource",
            "company-id": 12718,
            "creator-id": 79831,
            "creator-firstname": "Alex",
            "creator-lastname": "Malikov",
            "updater-id": 79831,
            "updater-firstname": "Alex",
            "updater-lastname": "Malikov",
            "completed": false,
            "start-date": "20221011",
            "due-date-base": "",
            "due-date": "",
            "created-on": "2022-10-12T03:42:46Z",
            "last-changed-on": "2022-10-12T03:42:46Z",
            "position": 2001,
            "decimal-position": 0,
            "estimated-minutes": 0,
            "priority": "",
            "progress": 0,
            "harvest-enabled": false,
            "parentTaskId": "",
            "lockdownId": "",
            "tasklist-lockdownId": "",
            "has-dependencies": 0,
            "has-predecessors": 0,
            "hasTickets": false,
            "timeIsLogged": "1",
            "attachments-count": 0,
            "predecessors": [],
            "attachments": [],
            "canEdit": true,
            "viewEstimatedTime": true,
            "creator-avatar-url": "https://s3.amazonaws.com/TWFiles/954917/userAvatar/twia_2f96289a462f36ba9414bf866afc897a.png",
            "canLogTime": true,
            "commentFollowerIds": "",
            "changeFollowerIds": "",
            "userFollowingComments": false,
            "userFollowingChanges": false,
            "DLM": 0
        }
    ]
}

@ishifoev
Copy link
Contributor Author

But we need time_entries.json. But the first how the process working you need create task list after it you need to create task. After you need to create a project that will work. After it you can log your time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant