Sueta

YouTubeAPI - Fully Recoded

1.2

Get the suscribers, total views and more of a YouTube channel in a very easy way

·Plugin

You have to install it as a plugin in plugins folder, after in your project add the plugin as an dependecy on your project and start coding.

In the config.yml file you will have to set your youtube api key for make the api work, if you don't know how to create one use this tutorial.
YouTube

Example:

if (cmd.getName().equalsIgnoreCase("example")) {
 
        YouTubeAPI youTubeAPI = new YouTubeAPI(channel_id, YouTubeChannelType.CHANNEL_ID);
        p.sendMessage(ChatColor.GOLD + "Channel name: " + ChatColor.YELLOW + youTubeAPI.getChannelName());
        p.sendMessage(ChatColor.GOLD + "Channel description: " + ChatColor.YELLOW + youTubeAPI.getChannelDescription());
        p.sendMessage(ChatColor.GOLD + "Suscribers: " + ChatColor.YELLOW + youTubeAPI.getSuscriberCount());
        p.sendMessage(ChatColor.GOLD + "Videos: " + ChatColor.YELLOW + youTubeAPI.getVideoCount());
        p.sendMessage(ChatColor.GOLD + "Total views: " + ChatColor.YELLOW + youTubeAPI.getTotalViews());
 
    }

Captura.PNG

Similar projects

Plugin →