Skip to content

Instantly share code, notes, and snippets.

@shellexy
Created February 18, 2012 00:44
Show Gist options
  • Save shellexy/1856582 to your computer and use it in GitHub Desktop.
Save shellexy/1856582 to your computer and use it in GitHub Desktop.
让 twip4 api 限额提高到 1000
--- twip/include/twitteroauth.php 2012-02-18 08:13:25.000000000 +0000
+++ twip/include/twitteroauth.php 2012-02-18 08:14:27.000000000 +0000
@@ -219,6 +219,8 @@
if (!empty($postfields)) {
$url = "{$url}?{$postfields}";
}
+ case 'GET':
+ curl_setopt($ch, CURLOPT_HTTPHEADER, array('X-PHX: true'));
}
curl_setopt($ci, CURLOPT_URL, $url);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment