arendjantetteroo / guzzle-toggl

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

Not able to pull time entries via API #28

Closed drkapoor closed 3 years ago

drkapoor commented 5 years ago

Hi

I really need your help. I'm struggling with getting time entries on Toggl via API.

I am working on a Laravel based project and I need to import time entries from my Toggl account. I am not able to pull records via API for some reason. I have configured the library correctly as per the given instructions.

image (1)

It should retrieve the records from Toggl and print a JSON on the browser. But I am getting below error message on every request to API. GuzzleHttp \ Exception \ ClientException (403) Client error: GET https://toggl.com/api/v8/time_entries?user_agent=deepak%40gmail.com&workspace_id=257895&with_related_data=1 resulted in a 403 Forbidden response

Please have a look into this and shed some light on this and let us know if this is a known issue and how should we resolve this?

Thanks, Deepak

arendjantetteroo commented 5 years ago

I don't see my package used in your code?

Are you sure the workspace_id is correct?