Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-mw committed Aug 31, 2023
1 parent 6296121 commit c48b34d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions userfiles/modules/twitter_feed/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ function twitter_feed_perform_api_request($url = 'https://api.twitter.com/1.1/se


if ($oauth_access_token==false){
$oauth_access_token = "220111598-87eLa7MgXZmd7YeRSkenTSVxhZikok61PXMKZFti";
$oauth_access_token = "";
}

if ($oauth_access_token_secret==false){
$oauth_access_token_secret = "KsDrxrxoGqVVK0ethvcTTrV58RBH3WUjnPeI616fnxIFS";
$oauth_access_token_secret = "";
}

if ($consumer_key==false){
$consumer_key = "WgDmyOjMgX1N7RhcLpQqzUrtR";
$consumer_key = "";
}


if ($consumer_secret==false){
$consumer_secret = "0e8PlzIeKlmGGyH1ajS2Ggaw0anPTX23p3gp2WqZ0PCNxkYYX1";
$consumer_secret = "";
}


Expand Down Expand Up @@ -59,7 +59,7 @@ function twitter_feed_perform_api_request($url = 'https://api.twitter.com/1.1/se

$return = json_decode($response, true);



if (!empty($return)){
cache_save($return, $cache_id, $cache_group, $cache_expiration_minutes);
Expand Down Expand Up @@ -132,14 +132,14 @@ function twitter_feed_get_user_tweets($twitter_handle = false, $results_count =

$count = intval($results_count);
$url = 'https://api.twitter.com/1.1/statuses/user_timeline.json';


$getfield = '?include_entities=true&include_rts=false&count=' . $count . '&exxclude_replies=true&nofilter=retweets&screen_name=' . $twitter_handle;
//dd($url, $getfield);
//dd($url, $getfield);
$items = twitter_feed_perform_api_request($url, $getfield);

if(isset($items["errors"])){
return;
}
return $items;
}
}

0 comments on commit c48b34d

Please sign in to comment.