Community
BIM 360 API Forum
Welcome to Autodesk’s BIM 360 API Forums. Share your knowledge, ask questions, and explore popular BIM 360 API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Data management API - Retrieve projects

0 REPLIES 0
Reply
Message 1 of 1
Littlerubarb
326 Views, 0 Replies

Data management API - Retrieve projects

Just having a minor issue and hoping another set of eyes can catch the error. In postman  https://developer.api.autodesk.com/project/v1/hubs/:hub_id/projects return all the projects by by vb.net application keeps returning nothing. Im not having any issues with any other calls just this one..

 

Dim Oauthtask = AuthOrize.InitializeOAuthPost()
Dim Accesstoken As String = "Bearer " + Oauthtask
Dim Projectslist As DataTable

Try
Dim options = New RestClientOptions("https://developer.api.autodesk.com") With {.MaxTimeout = -1}
Dim client = New RestClient(options)
Dim request = New RestRequest("/project/v1/hubs/" + Account.Default.hubID + "/projects", Method.[Get])
request.AddHeader("Content-Type", "application/json")
request.AddHeader("Authorization", Accesstoken)
Dim response As RestResponse = client.Execute(request)

MsgBox(response.Content) - returns nothing

 

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report