logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
obrienmd  
#1 Posted : Monday, May 14, 2018 5:01:55 PM(UTC)
obrienmd


Rank: Member

Medals: ScreenConnect Advisor: Focus Group Member

Joined: 2/6/2015(UTC)
Posts: 28
United States
Location: Seattle, WA

https://docs.connectwise...es/Release_notes_archive

Shows for 6.6:
"Service methods available through RESTful APIs".

Support noted there are no docs for this yet, but is there something barebones to review? I'd love to be able to manage users, user groups, sessions and session groups via a RESTful API!!
Scott  
#2 Posted : Thursday, May 17, 2018 5:15:33 PM(UTC)
Scott


Rank: Administration

Medals: Level 4: Wise Old Owl! Received 100 Thanks!

Joined: 3/28/2014(UTC)
Posts: 2,731
United States

Thanks: 3 times
Was thanked: 334 time(s) in 288 post(s)
I'm pretty sure we implement OpenAPI so you can pull the whole document by appending OpenApiDocument.axd to your Control instance URL, like:
Code:

https://my.server.com:8040/OpenApiDocument.axd
ScreenConnect Team
obrienmd  
#3 Posted : Tuesday, May 29, 2018 5:46:24 PM(UTC)
obrienmd


Rank: Member

Medals: ScreenConnect Advisor: Focus Group Member

Joined: 2/6/2015(UTC)
Posts: 28
United States
Location: Seattle, WA

Originally Posted by: Scott Go to Quoted Post
I'm pretty sure we implement OpenAPI so you can pull the whole document by appending OpenApiDocument.axd to your Control instance URL, like:
Code:

https://my.server.com:8040/OpenApiDocument.axd


Thanks! Can't wait for it to be more fleshed out, and have docs!

Any idea how to authenticate for API calls? I'm going to try session-based (basically mock a web GUI login) first...
Scott  
#4 Posted : Thursday, June 7, 2018 12:37:45 PM(UTC)
Scott


Rank: Administration

Medals: Level 4: Wise Old Owl! Received 100 Thanks!

Joined: 3/28/2014(UTC)
Posts: 2,731
United States

Thanks: 3 times
Was thanked: 334 time(s) in 288 post(s)
There are a few ways you can authenticate, the ConnectWise Control web server is just a C# web application and thus we implement authentication via HttpContext.

This means you can just pass Authorization via a Basic method with the username and password.

Another more secure method is to use the ASPXAUTH value stored within the cookie as a header in the request. Within a browser, log into the Host page and open the developer's console. Change to the Network tab and then refresh the page. You should see a request to the method "GetHostSessionInfo", right click on that and say Copy > Copy as cURL (this is for Firefox but I'd imagine chrome is very similar). Within this copied text is a -H "Cookie:.ASPXAUTH=xxx" header, you can take that and add it as a header to your request which should then provide an authenticated response without sending a password everytime.
ScreenConnect Team
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.