Method GetConnections
GetConnections(String)
Get all remote connections
Declaration
List<RemoteConnectionContract> GetConnections(string connectionId)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<RemoteConnectionContract> | List of all remote connections |
Examples
POST http://YourServerName/InfoShare/Json/Server/GetConnections
Example for getting all remote connections.{
"connectionId": "e3b3b164-9b0b-4d00-9981-83fe4835df1a"
}
Response:
{
"GetTokenSettingsResult": [{
"Audience": "",
"ClientSecret": "",
"Description": {
"Values": [{
"Culture": "en-US",
"Text": "" }, {
"Culture": "en",
"Text": ""}] },
"Id": "92d7a18c-40e7-4740-89ac-e95a8af6a9b5",
"LoginRedirectUrl": "",
"IsOwnConnection": true,
"Name": {
"Values": [{
"Culture": "en-US",
"Text": "" }, {
"Culture": "en",
"Text": ""}] },
"TokenTypeEnum": "0" }]
}
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |