I am trying to connect to the Toggl API for a project, and their examples use CURL. I am trying to use a C # shell that causes a bad request when trying to create a report, so I decided to use Postman for a simple HTTP request.
I cannot force an HTTP request to accept my API token. Here is an example they give (CURL):
curl -u my-secret-toggl-api-token:api_token -X GET "https://www.toggl.com/reports/api/v2/project/?page=1& user_agent=devteam@example.com &workspace_id=1&project_id=2"
I tried the following HTTP request with Postman with a header called api_token with my token as value:
https://www.toggl.com/reports/api/v2/project/ ?user_agent=MYEMAIL@EMAIL.COM &project_id=9001&workspace_id=9001
(changed identifiers and email, of course).
Any help on using CURL -u in HTTP would be appreciated, thanks.
Matt brewerton
source share