Ignore:
Timestamp:
Apr 11, 2014, 2:56:54 PM (7 years ago)
Author:
cedric@…
Message:

Le plugin utilise désormais l'API interne recuperer_page plutot que cURL, ce qui permet de passer par le proxy configuré dans SPIP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/twitter/trunk/action/twitter_oauth_authorize.php

    r73938 r81826  
    1818function action_twitter_oauth_authorize_dist(){
    1919
    20         include_spip('inc/twitteroauth');
     20        include_spip('inc/twitteroauthspip');
    2121        include_spip('inc/session');
    2222
     
    4242                        $consumer_secret = $cfg['twitter_consumer_secret'];
    4343
    44                         $connection = new TwitterOAuth($consumer_key, $consumer_secret, $GLOBALS['visiteur_session']['oauth_token'], $GLOBALS['visiteur_session']['oauth_token_secret']);
     44                        $connection = new TwitterOAuthSPIP($consumer_key, $consumer_secret, $GLOBALS['visiteur_session']['oauth_token'], $GLOBALS['visiteur_session']['oauth_token_secret']);
    4545                        $access_token = $connection->getAccessToken(_request('oauth_verifier'));
    4646                        session_set('access_token',$access_token);
     
    8686
    8787        include_spip('inc/filtres');
    88         include_spip('inc/twitteroauth');
     88        include_spip('inc/twitteroauthspip');
    8989        include_spip('inc/session');
    9090
     
    101101         */
    102102        try {
    103                 $connection = new TwitterOAuth($cfg['twitter_consumer_key'], $cfg['twitter_consumer_secret']);
     103                $connection = new TwitterOAuthSPIP($cfg['twitter_consumer_key'], $cfg['twitter_consumer_secret']);
    104104                $request_token = $connection->getRequestToken($oauth_callback);
    105105                $token = $request_token['oauth_token'];
Note: See TracChangeset for help on using the changeset viewer.