List
List
client.Apps.Connectors.List(ctx, appID, query) (*ExpandedarrayListarrayNextPageTokenstringAppConnectorListResponse, error)
get/api/v1/apps/{app_id}/connectors
List connectors for an app.
Parameters
appIDstring
The appId field.
queryPageSizefieldPageTokenfieldAppConnectorListParams
Returns
AppConnectorListResponsestruct
The ConnectorServiceListResponse message contains a list of results and a nextPageToken if applicable
Request example Go
package main
import (
"context"
"fmt"
"github.com/stainless-sdks/-go"
"github.com/stainless-sdks/-go/option"
)
func main() {
client := conductoronesdk.NewClient(
option.WithAPIKey("My API Key"),
)
connectors, err := client.Apps.Connectors.List(
context.TODO(),
"app_id",
conductoronesdk.AppConnectorListParams{
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", connectors.Expanded)
}
200 Example
{
"expanded": [
{
"@type": "@type"
}
],
"list": [
{
"appPath": "appPath",
"connector": {
"id": "id",
"appId": "appId",
"catalogId": "catalogId",
"config": {
"@type": "@type"
},
"description": "description",
"displayName": "displayName",
"oauthAuthorizedAs": {},
"profileAllowList": [
"string"
],
"profileIgnoreList": [
"string"
],
"status": {
"completedAt": "2019-12-27T18:11:19.117Z",
"lastError": "lastError",
"startedAt": "2019-12-27T18:11:19.117Z",
"status": "SYNC_STATUS_UNSPECIFIED",
"updatedAt": "2019-12-27T18:11:19.117Z"
},
"syncDisabledCategory": "syncDisabledCategory",
"syncDisabledReason": "syncDisabledReason",
"userIds": [
"string"
]
},
"usersPath": "usersPath"
}
],
"nextPageToken": "nextPageToken"
}