Hello.
I am trying to connect with your RESTful API but I think I am doing something wrong. First of all does your REST api answer the same address as your OData one? I try to connect to https://up2team.timehub.7pace.com/api/odata/TimeEntryExport but it says that no HTTP resource is found on this URL, no matter what parameters I am passing.
Can you be so kind to guide ho to do the connection with CURL for example?
Best regards,
Victor Lazov
-
Hi Victor!
What tool are you using to get API data?
Could you please provide the full URL of your request?
It should be like:
https://up2team.timehub.7pace.com/api/odata/TimeExport(StartDate='2018-03-01',EndDate='2018-04-01' ,PopulateTopParentColumns=null,GroupTimeByDateByUser=null,IncludeBillable=null)
Kind regards,
Andarth
-
Hi Victor!
Here you could get more details on API:
https://support.7pace.com/hc/en-us/articles/115002686103-Timetracker-Reporting-API-for-VSTS
Also, you could get details on API endpoints directly in Configuration page -> API -> API guides.
> I can see the message "Authorization has been denied for this request."
Yes, you need to add OAuth authorization, the token could be created on Configuration page -> API page
>I use Postman if that matters at all.
If you are using Postman you could just add Header "Authorization" with value "Bearer {your token}"
If you will use other clients to get API, you could check auth details in the article above.
Kind regards,
Andarth
Please sign in to leave a comment.
Comments
4 comments