arendjantetteroo / guzzle-toggl

A Toggl API client based on guzzle
MIT License
88 stars 42 forks source link

Added new API calls for groups/users #17

Closed carcus88 closed 8 years ago

carcus88 commented 8 years ago

Added new workspace users and workspace groups API calls. Information not documented in official Toggl API docs but provided via email support from them in the following email.

-- BEGIN TOGGL SUPPORT EMAIL -- Thanks for getting in touch with us.

You can get a list of all groups with their names and group IDs with a GET request to this endpoint: https://toggl.com/api/v8/workspaces/{workspace_id}/groups Sending a GET request to https://toggl.com/api/v8/workspaces/{workspace_id}/workspace_users will give you a list of all users in the workspace, each user will have a property "group_ids" that is an array containing the IDs of the groups they are members of. You will then have to collate the two on your end, this way you can create a list of the members of each group.

I let my colleagues know that this is missing from the documentation.

If you have any more questions, let me know, I'll be glad to answer them.

All the best,

Robert

Toggl Support

arendjantetteroo commented 8 years ago

Thanks @carcus88 , it's appreciated

carcus88 commented 8 years ago

Thanks for merging, can you tag a release so I can composer update and get the latest?

On Tue, Aug 9, 2016 at 5:36 AM, Arend-Jan Tetteroo <notifications@github.com

wrote:

Thanks @carcus88 https://github.com/carcus88 , it's appreciated

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arendjantetteroo/guzzle-toggl/pull/17#issuecomment-238503267, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFzhl7QiHscjQA9i50HsMt1vTbWI9KLks5qeEomgaJpZM4Jfcyq .

arendjantetteroo commented 8 years ago

Done.