 Rank: Newbie Joined: 2/14/2017(UTC) Posts: 10  Location: New York Thanks: 1 times
|
Dear ScreenConnect Support, We have developed our own .NET Windows Form Application and we are trying to integrate ScreenConnect in our workflow.
Is there a way we can utilize your .NET API to connect an existing session?
If so is there any API example we can follow?
Thanks, Charles
|
|
|
|
 Rank: Administration Medals:  Joined: 10/2/2015(UTC) Posts: 329
Thanks: 1 times Was thanked: 71 time(s) in 63 post(s)
|
Originally Posted by: charles.tsai  Dear ScreenConnect Support, We have developed our own .NET Windows Form Application and we are trying to integrate ScreenConnect in our workflow.
Is there a way we can utilize your .NET API to connect an existing session?
If so is there any API example we can follow?
Thanks, Charles You may want to check out the code in a couple of the existing integration extensions available via the Extension Marketplace -- these extensions often implement service methods to return host/guest join URLs, so that sessions may be joined from third-party applications. Your custom .NET app would need to make a POST to either an existing PageService method or a custom extension method to return the desired join URL. To view extension source code, install the Extension Developer extension, then select Develop -> View Files on an installed extension. For example, check out the code in the Zendesk extension's CreateZendeskIntegratedSupportSession method in Service.ashx: Code:public object CreateZendeskIntegratedSupportSession(int ticketID, string currentUsername, string createCodedSession)
{
AssertValidApiToken();
...
return new
{
hostUrl = hostJoinUri.ToString(),
guestUrl = guestInviteUrl,
connected = session.SafeNav(_ => _.ActiveConnections.Where(__ => __.ProcessType == ProcessType.Guest).Any()),
sessionCode = session.Code
};
|
ScreenConnect Team |
|
|
|
 Rank: Newbie Joined: 2/14/2017(UTC) Posts: 10  Location: New York Thanks: 1 times
|
Dear Ben, Thanks for the reply. I will definitely check the Market Place.
Sorry I just found that my question may not be clear enough...
I am wondering is there an example or API we can use for start the SC Client and join the session as guest (like java Client api) for .NET?
Thanks and hope to hear from you soon.
best, Charles
|
|
|
|
 Rank: Administration Medals:  Joined: 3/28/2014(UTC) Posts: 2,862  Thanks: 3 times Was thanked: 351 time(s) in 303 post(s)
|
This KB article has a detailed description of the Client Launch Parameters and their values. You can specify what type of session you want to join and of which connection type. |
ScreenConnect Team |
|
|
|
 Rank: Administration Medals:  Joined: 3/28/2014(UTC) Posts: 2,862  Thanks: 3 times Was thanked: 351 time(s) in 303 post(s)
|
To follow up, in theory you can prepackage the .application file and invoke it via clickonce, just be sure to pass the same parameters as you would in the webrequest. To do this within a C# application, you would include the following: Code:
[DllImport("dfshim", CharSet = CharSet.Auto)]
static extern void ShOpenVerbApplication(IntPtr hwnd, IntPtr hinstance, string lpcwstr, int dwflags);
And then invoke it similar to: Code:
App.ShOpenVerbApplication(IntPtr.Zero, IntPtr.Zero, file://C:/something.application, 0);
This article might be useful. I can't say that I've personally tried this so I'm not sure if it works, but other than this I can't think of a way to accomplish what you want. Edited by user Wednesday, December 13, 2017 3:09:55 PM(UTC)
| Reason: Not specified |
ScreenConnect Team |
|
|
|
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.