I am trying to get a list of channel id a user have made using YouTube Data API (V3). How do I do this? I have user access token obtained after authorisation.
I want to fetch subscriber count for each channel which I have already done by passing one of the ID I know for a channel but that is for testing purposes.
I am using RestTemplate
from org.springframework.web.client
to make the request.
RestTemplate restTemplate = new RestTemplate();
MultiValueMap<String, String> parameters = new LinkedMultiValueMap<>();
//what parameters to set?
URIBuilder uriBuilder = URIBuilder.fromUri("https://www.googleapis.com/youtube/v3/channels");
I tried implementing a solution, as suggested by this SO answer but wasn't even able to make a good request.