Created
February 18, 2012 00:44
-
-
Save shellexy/1856582 to your computer and use it in GitHub Desktop.
让 twip4 api 限额提高到 1000
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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