Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Created November 11, 2018 11:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save productioncoder/f57617f4b787640ec7179de8c4cb105e to your computer and use it in GitHub Desktop.
Save productioncoder/f57617f4b787640ec7179de8c4cb105e to your computer and use it in GitHub Desktop.
Youtube in React: channels request
export function buildChannelRequest(channelId) {
return buildApiRequest('GET',
'/youtube/v3/channels',
{
part: 'snippet,statistics',
id: channelId,
fields: 'kind,items(id,snippet(description,thumbnails/medium,title),statistics/subscriberCount)'
}, null);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment