REST API connection

Officially Answered

Comments

4 comments

  • Avatar
    7pace tech support

    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

    0
    Comment actions Permalink
  • Avatar
    Victor Lazov

    Hi Andarth,

    The URL you sent me actually works. I can see the message "Authorization has been denied for this request." Should I add OAuth authorization now and with what credentials? My VSTS ones?

    I use Postman if that matters at all.

    Best regards,
    Victor

    0
    Comment actions Permalink
  • Avatar
    7pace tech support

    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

    0
    Comment actions Permalink
  • Avatar
    Victor Lazov

    Hi, Andarth,

    Thank you very much for the swift response! The authorization header works perfectly with postman, likewise with cURL. It will he handy if you include this in the developer documentation in the future.

    You can consider the case as closed for now.

    Best regards!
    Victor

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk