Skip to content

Instantly share code, notes, and snippets.

@MattRead
Created March 26, 2013 13:52
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 MattRead/5245524 to your computer and use it in GitHub Desktop.
Save MattRead/5245524 to your computer and use it in GitHub Desktop.
twitterlitte
diff --git a/twitterlitte.plugin.php b/twitterlitte.plugin.php
index 8da3d97..900738f 100644
--- a/twitterlitte.plugin.php
+++ b/twitterlitte.plugin.php
@@ -63,7 +63,7 @@ class TwitterLitte extends Plugin
), '', '&' );
}
else {
- $url = 'http://twitter.com/statuses/user_timeline/' . $block->username . '.json';
+ $url = 'http://api.twitter.com/1/statuses/user_timeline.json?screen_name=' . $block->username;
}
return $url;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment