bright-policeman-41717
10/28/2022, 8:19 AMpackage main
import (
"context"
"fmt"
client "<http://github.com/ory/client-go|github.com/ory/client-go>"
)
func main() {
configuration := client.NewConfiguration()
configuration.Servers = []client.ServerConfiguration{
{
URL: "<http://127.0.0.1:4434>", // Kratos Admin API
},
}
apiClient := client.NewAPIClient(configuration)
checkIdentity := apiClient.V0alpha2Api.AdminListIdentities(context.Background())
list, _, err := checkIdentity.Execute()
if err != nil {
fmt.Println(err)
}
fmt.Println("First identity %s", list[0].Id)
}
red-machine-69654
10/28/2022, 11:26 AMbright-policeman-41717
10/28/2022, 1:17 PMbright-policeman-41717
10/28/2022, 1:18 PMbright-policeman-41717
10/28/2022, 1:22 PMbright-policeman-41717
10/28/2022, 1:26 PMred-machine-69654
10/28/2022, 1:48 PMred-machine-69654
10/28/2022, 1:49 PMbright-policeman-41717
10/28/2022, 1:53 PMbright-policeman-41717
10/28/2022, 1:54 PMfast-lunch-54279
fast-lunch-54279
red-machine-69654
10/31/2022, 7:35 PMred-machine-69654
10/31/2022, 7:36 PM