List applications
client.Zones.Applications.List(ctx, zoneID, query) (*ZoneApplicationListResponse, error)
GET/zones/{zoneId}/applications
Returns a list of applications in the specified zone
Parameters
zoneID string
Returns
List applications
package main
import (
"context"
"fmt"
"github.com/keycardai/keycard-go"
)
func main() {
client := keycard.NewClient(
)
applications, err := client.Zones.Applications.List(
context.TODO(),
"zoneId",
keycard.ZoneApplicationListParams{
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", applications.Items)
}
{
"items": [
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"dependencies_count": 0,
"identifier": "x",
"name": "x",
"organization_id": "organization_id",
"owner_type": "platform",
"slug": "slug",
"updated_at": "2019-12-27T18:11:19.117Z",
"zone_id": "zone_id",
"description": "description",
"metadata": {
"docs_url": "https://example.com"
},
"protocols": {
"oauth2": {
"post_logout_redirect_uris": [
"https://example.com"
],
"redirect_uris": [
"https://example.com"
]
}
}
}
],
"page_info": {
"has_next_page": true,
"has_previous_page": true,
"end_cursor": "end_cursor",
"start_cursor": "start_cursor"
},
"pagination": {
"after_cursor": "x",
"before_cursor": "x",
"total_count": 0
}
}Returns Examples
{
"items": [
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"dependencies_count": 0,
"identifier": "x",
"name": "x",
"organization_id": "organization_id",
"owner_type": "platform",
"slug": "slug",
"updated_at": "2019-12-27T18:11:19.117Z",
"zone_id": "zone_id",
"description": "description",
"metadata": {
"docs_url": "https://example.com"
},
"protocols": {
"oauth2": {
"post_logout_redirect_uris": [
"https://example.com"
],
"redirect_uris": [
"https://example.com"
]
}
}
}
],
"page_info": {
"has_next_page": true,
"has_previous_page": true,
"end_cursor": "end_cursor",
"start_cursor": "start_cursor"
},
"pagination": {
"after_cursor": "x",
"before_cursor": "x",
"total_count": 0
}
}