Retrieve Credentials
List App User Credentials
client.Apps.AppUsers.GetCredentials(ctx, appUserID, params) (*ListarrayNextPageTokenstringAppAppUserGetCredentialsResponse, error)
get/api/v1/apps/{app_id}/app_users/{app_user_id}/credentials
Invokes the c1.api.app.v1.AppUserService.ListAppUserCredentials method.
Parameters
appUserIDstring
The appUserId field.
paramsAppIDfieldPageSizefieldPageTokenfieldAppAppUserGetCredentialsParams
Returns
AppAppUserGetCredentialsResponsestruct
The AppUserServiceListCredentialsResponse message.
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"),
)
response, err := client.Apps.AppUsers.GetCredentials(
context.TODO(),
"app_user_id",
conductoronesdk.AppAppUserGetCredentialsParams{
AppID: "app_id",
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.List)
}
200 Example
{
"list": [
{
"encryptedData": {},
"expiresAt": "2019-12-27T18:11:19.117Z"
}
],
"nextPageToken": "nextPageToken"
}