@wildix/wda-insights-client > GetPlaylistCommand
GetPlaylistCommand class
Gets a playlist by its ID.
Signature:
export declare class GetPlaylistCommand extends GetPlaylistCommand_base
Extends: GetPlaylistCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { WdaInsightsClient, GetPlaylistCommand } from "@wildix/wda-insights-client"; // ES Modules import
// const { WdaInsightsClient, GetPlaylistCommand } = require("@wildix/wda-insights-client"); // CommonJS import
const client = new WdaInsightsClient(config);
const input = { // GetPlaylistInput
company: "STRING_VALUE",
user: "STRING_VALUE",
id: "STRING_VALUE", // required
};
const command = new GetPlaylistCommand(input);
const response = await client.send(command);
// { // GetPlaylistOutput
// playlist: { // Playlist
// name: "STRING_VALUE", // required
// description: "STRING_VALUE",
// id: "STRING_VALUE", // required
// createdAt: "STRING_VALUE", // required
// createdBy: "STRING_VALUE", // required
// createdByName: "STRING_VALUE", // required
// updatedAt: "STRING_VALUE",
// access: { // PlaylistAccess
// visibility: "explicit" || "organization",
// grants: [ // PlaylistGrantList
// { // PlaylistGrant
// permission: "view" || "edit", // required
// principal: { // PlaylistPrincipal Union: only one key present
// userId: "STRING_VALUE",
// groupId: "STRING_VALUE",
// },
// },
// ],
// },
// itemsCount: Number("int"), // required
// },
// };