davereid/toggl-php-sdk — Issue #3: Issues in API integration
Author: nidhis
Created: 2011-11-04 12:45:07+00:00
State: open

Hi,
We are working for retailmicro.com and facing some issues in integrating and following up with Toggl API.

When we try authenticate ourselves with the token, it returns nothing and creating cookies as we can see in browser cookies. It is not returning anything as shown on https://www.toggl.com/public/api
{
"data": {
"email": "johndoe@gmail.com",
"date_format": "%m/%d/%Y",
"new_time_entries_start_automatically": true,
"language": "en_US",
"api_token": "ffc3f3024ec5d40cee2e24d5ff023c12",
"fullname": "John Doe",
"time_entry_retention_days": 9,
"jquery_date_format": "m/d/Y",
"default_workspace_id": 31366,
"jquery_timeofday_format": "H:i",
"beginning_of_week": 1,
"id": 42182,
"timeofday_format": "%H:%M"
},
"related_data_updated_at": "2010-06-29T11:17:19+03:00"
}

Also, if after running the authentication code, we try to create client without sending any details, we were receiving error”Name cannot be blank”. But if we send name along with the request, we get blank response from the API without any confirmation and the client is not created.

Please let us know the issues or what else is required other than PEAR.

One more question, why is PEAR installation required?