getChannelInformation

Method that makes a GET request to https://holodex.net/api/v2/channels/{channelId}

Returns

A Channel object matching the given channel ID.

Parameters

Name
Type

channelId

String

Usage Example

HolodexClient holodexClient = new HolodexClient("HOLODEX_API_KEY");

ObjectMapper objectMapper = JsonMapper.builder()
                .addModule(new JavaTimeModule())
                .build();

Channel channel = holodexClient.getChannelInformation("UC5CwaMl1eIgY8h02uZw7u8A");

System.out.println(objectMapper
    .writerWithDefaultPrettyPrinter()
    .writeValueAsString(channel));

Result Example

Last updated