<?php // Require the core Temboo PHP SDK and required libraries require_once 'php-sdk/src/temboo.php'; // Instantiate the session and Choreo $session = new Temboo_Session('avamburke', 'myFirstApp', '1cd04d6877b34919af807dc42bb645e6'); $getFriendsByIDChoreo = new Twitter_FriendsAndFollowers_GetFriendsByID($session); // Act as a proxy on behalf of the JavaScript SDK $tembooProxy = new Temboo_Proxy(); // Add Choreo proxy with an ID matching that specified by the JS SDK client $tembooProxy->addChoreo('jsGetFriendsByID', $getFriendsByIDChoreo); // Get an input object for the Choreo $getFriendsByIDInputs = $getFriendsByIDChoreo->newInputs(); // Set credential to use for execution $getFriendsByIDInputs->setCredential('test'); $tembooProxy->setDefaultInputs('jsGetFriendsByID', $getFriendsByIDInputs); // Set default input values $tembooProxy->allowUserInputs('jsGetFriendsByID', 'ScreenName'); // Execute the Choreo echo $tembooProxy->execute($_POST['temboo_proxy']);
<?php // Require the core Temboo PHP SDK and required libraries require_once 'php-sdk/src/temboo.php'; // Instantiate the session and Choreo $session = new Temboo_Session('avamburke', 'myFirstApp', '1cd04d6877b34919af807dc42bb645e6'); $lookupChoreo = new Twitter_Users_Lookup($session); // Act as a proxy on behalf of the JavaScript SDK $tembooProxy = new Temboo_Proxy(); // Add Choreo proxy with an ID matching that specified by the JS SDK client $tembooProxy->addChoreo('jsLookup', $lookupChoreo); // Get an input object for the Choreo $lookupInputs = $lookupChoreo->newInputs(); // Set credential to use for execution $lookupInputs->setCredential('test'); $tembooProxy->setDefaultInputs('jsLookup', $lookupInputs); // Set default input values $tembooProxy->allowUserInputs('jsLookup', 'UserId'); // Execute the Choreo echo $tembooProxy->execute($_POST['temboo_proxy']);
<?php // Require the core Temboo PHP SDK and required libraries require_once 'php-sdk/src/temboo.php'; // Instantiate the session and Choreo $session = new Temboo_Session('avamburke', 'myFirstApp', '1cd04d6877b34919af807dc42bb645e6'); $getFollowersByIDChoreo = new Twitter_FriendsAndFollowers_GetFollowersByID($session); // Act as a proxy on behalf of the JavaScript SDK $tembooProxy = new Temboo_Proxy(); // Add Choreo proxy with an ID matching that specified by the JS SDK client $tembooProxy->addChoreo('jsGetFollowersByID', $getFollowersByIDChoreo); // Set default input values $tembooProxy->allowUserInputs('jsGetFollowersByID', 'ScreenName')->allowUserInputs('jsGetFollowersByID', 'AccessToken')->allowUserInputs('jsGetFollowersByID', 'AccessTokenSecret')->allowUserInputs('jsGetFollowersByID', 'ConsumerSecret')->allowUserInputs('jsGetFollowersByID', 'ConsumerKey'); // Execute the Choreo echo $tembooProxy->execute($_POST['temboo_proxy']);