Skip to content

Commit

Permalink
Update API calls.md to reflect latest github.com/toggl/toggl_api_docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tk committed Aug 11, 2013
1 parent 3455394 commit bdf40bc
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 15 deletions.
50 changes: 36 additions & 14 deletions API calls.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,6 @@ curl -b toggl_api_session.cookie -X GET https://www.toggl.com/api/v8/me
curl -b toggl_api_session.cookie -X DELETE https://www.toggl.com/api/v8/sessions
```

# User data

### Basic user data
```
curl -u $(toggl_api):api_token -X GET https://www.toggl.com/api/v8/me
```
### Additional user data: Clients, Projects, Tags, Time Entries, Workspaces, etc.
```
curl -u $(toggl_api):api_token -H "Content-type: application/json" -X GET https://www.toggl.com/api/v8/me?with_related_data=true
```

# Clients

### Create client
Expand Down Expand Up @@ -202,6 +191,14 @@ curl -u $(toggl_api):api_token \
curl -u $(toggl_api):api_token \
-X DELETE https://www.toggl.com/api/v8/project_users/8310314
```
### Add multiple users to a project
Not Supported

### Update multiple project users
Not Supported

### Delete multiple project users
Not Supported

# Tags

Expand Down Expand Up @@ -286,6 +283,12 @@ curl -v -u $(toggl_api):api_token \
curl -u $(toggl_api):api_token -X GET https://www.toggl.com/api/v8/time_entries/77628973
```

### Start a time entry
Not Supported

### Stop a time entry
Not Supported

### Update time entry
```
curl -u $(toggl_api):api_token \
Expand All @@ -294,6 +297,11 @@ curl -u $(toggl_api):api_token \
-X PUT https://www.toggl.com/api/v8/time_entries/77633781
```

### Delete time entry
```
curl -u $(toggl_api):api_token -X DELETE https://www.toggl.com/api/v8/time_entries/77628973
```

### Get time entries started in a specific time range
**Notes:**

Expand All @@ -310,12 +318,17 @@ curl -u $(toggl_api):api_token \
-X GET "https://www.toggl.com/api/v8/time_entries?start_date=2013-06-04T18:32:12%2B00:00"
```

### Delete time entry
# Users

### Get current user data
```
curl -u $(toggl_api):api_token -X DELETE https://www.toggl.com/api/v8/time_entries/77628973
curl -u $(toggl_api):api_token -X GET https://www.toggl.com/api/v8/me
```

# Users
### Get current user with related data
```
curl -u $(toggl_api):api_token -H "Content-type: application/json" -X GET https://www.toggl.com/api/v8/me?with_related_data=true
```

### Sign up new user
**Notes:** This is not implemented in [togglv8](/) wrapper because it will increase the cost of your Toggl account. See [Toggl Pricing and Payments](http://support.toggl.com/pricing-and-payments/) for details.
Expand Down Expand Up @@ -367,6 +380,9 @@ curl -u $(toggl_api):api_token -X GET https://www.toggl.com/api/v8/workspaces/28

# Workspace Users

### Invite users to workspace
Not Supported

### Update workspace user (can only update admin flag)
**Note:** Call fails with error message "Cannot access workspace users"
```
Expand All @@ -375,3 +391,9 @@ curl -u $(toggl_api):api_token \
-d '{"workspace_user":{"admin":true}}' \
-X PUT https://www.toggl.com/api/v8/workspace_users/282224
```

### Delete workspace user
Not Supported

### Get workspace users for a workspace
Not Supported
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.2
0.1.3

0 comments on commit bdf40bc

Please sign in to comment.