Skip to content

Instantly share code, notes, and snippets.

View roryheaney's full-sized avatar

Rory Heaney roryheaney

View GitHub Profile
@roryheaney
roryheaney / php-vimeo-video-thumbnail-url.php
Created October 17, 2017 05:06 — forked from anjan011/php-vimeo-video-thumbnail-url.php
php - get vimeo video thumbnail image url
<?php
/**
* Gets the thumbnail url for a vimeo video using the video id. This only works for public videos.
*
* @param string $id The video id.
* @param string $thumbType Thumbnail image size. supported sizes: small, medium (default) and large.
*
* @return string|bool
@roryheaney
roryheaney / WordPress-Tweet-List.php
Created February 16, 2016 21:16 — forked from michael-martin/WordPress-Tweet-List.php
Display tweets in WordPress using Twitter API v1.1 - With authentication and a fallback when Twitter is down. Full explanation here: http://www.problogdesign.com/wordpress/authenticate-your-twitter-api-calls-before-march/
<?php
/* REQUIRES: TwitterOAuth
* https://github.com/abraham/twitteroauth/tree/master/twitteroauth
*
* Download and place in a /twitteroauth/ folder in your theme/plugin.
*
*
* Full guide here: http://www.problogdesign.com/wordpress/authenticate-your-twitter-api-calls-before-march/
*
* Uses: