Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Created November 14, 2018 19:26
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/5b5e989f42263a1803a2b95cc919fb47 to your computer and use it in GitHub Desktop.
Save productioncoder/5b5e989f42263a1803a2b95cc919fb47 to your computer and use it in GitHub Desktop.
Youtube in React: creating a comment thread request
export function buildCommentThreadRequest(videoId, nextPageToken) {
return buildApiRequest('GET',
'/youtube/v3/commentThreads',
{
part: 'id,snippet',
pageToken: nextPageToken,
videoId,
}, null);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment