YouTube View Count to Tweet

Untitled

I was just messing around a bit more with mashing up the YouTube API post from earlier with the Twitter post from earlier today.

This Google Script will get the view count of a particular video (Gangnam Style) and send out the total views and the time elapsed watching the video (assuming I did the math right). It has no real purpose (other than the scale of the number amuses me) but it’s one of those things with concepts that I’ll be able to apply more usefully in the future. That’s a gut feeling but I’m pretty confident.

Don’t forget to add the Twitter library as directed here.1


1 in the Apps Script project, include the library MKvHYYdYA4G5JJHj7hxIcoh8V4oX7X1M_ with the identifier set to Twitter