nxs_getBackTWCommentsList

The NextScripts: Social Networks Auto-Poster nxs getBackTWCommentsList function.

Description

nxs_getBackTWCommentsList( $options ); 

Parameters (1)

0. $options
The options.

Usage

  1. if ( !function_exists( 'nxs_getBackTWCommentsList' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextscripts-social-networks-auto-poster/inc-cl/tw.php'; 
  3.  
  4. // The options. 
  5. $options = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = nxs_getBackTWCommentsList($options); 
  9.  

Defined (1)

The function is defined in the following location(s).

/inc-cl/tw.php  
  1. if (!function_exists("nxs_getBackTWCommentsList")) { function nxs_getBackTWCommentsList($options) {  
  2. require_once ('apis/tmhOAuth.php'); $tmhOAuth = new NXS_tmhOAuth(array( 'consumer_key' => $options['twConsKey'], 'consumer_secret' => $options['twConsSec'], 'user_token' => $options['twAccToken'], 'user_secret' => $options['twAccTokenSec'])); 
  3. $code = $tmhOAuth->request('GET', $tmhOAuth->url('1.1/statuses/mentions_timeline'));  
  4. if ($code=='200' && isset($tmhOAuth->response['response']) ) { $tweets = json_decode($tmhOAuth->response['response'], true); if (is_array($tweets)) return $tweets; } return false;  
  5. }}