6. Twitter Get User Info
//instantiate twitter user
$user = eden(‘twitter’)->users($key, $secret,
$access[‘oauth_token’],
$access[‘oauth_token_secret’]);
7. Get User Info
//get info of authenticated user
$info = $user->getCredentials()
8. Post a tweet
//Instantiate tweet
$tweet = eden(‘twitter’)->tweet($key, $secret,
$access[‘oauth_token’],
$access[‘oauth_token_secret’]);
10. Post a Tweet with Image
//image syntax
$img = “@{$_FILES[‘image’][‘tmp_name’]};”.
“type={$_FILES[‘image’][‘type’]};”.
“filename{$_FILES[‘images’][‘name’]}”;
11. Post a Tweet with Image
//send tweet with image
$tweets->tweetMedia([YOUR-STATUS], $img);
15. Eden Paypal Checkout
//Prepare checkout data
$checkout = $paypal->setAmount(‘[amount]’)
->setItemAmount(‘[amount]’)
->setCurrency(‘[amount]’)
->setItemName(‘[Item Name]’)
->setItemDescription(‘[Item Description]’)
->setQuantity(‘[quantity]’);
16. Eden Paypal Checkout
//Prepare checkout data
$checkout = $paypal->setAmount(100)
->setItemAmount(100)
->setCurrency(‘PHP’)
->setItemName(‘Nike Shoe’)
->setItemDescription(‘Amazing nike shoe’)
->setQuantity(1);
17. Eden Paypal Get Token
//get response
$response = $checkout
->getResponse(‘[success url]’,
‘cancel url’);
18. Eden Paypal Get Token
//get response
$response = $checkout
->getResponse(‘http://clark.com?success’,
‘http://clark.com?cancel’);
19. Eden Paypal getResponse
//getResponse returns
Array(‘[TOKEN ]’ => ‘[Some Random character]’,
‘[timestamp]’ => ‘date’,
‘[CORELATIONID]’ => ‘[some random character]’,
‘[ACK]’ => [Success or Failure]
…);
20. Eden Paypal Redirect to paypal
//this will redirect to paypal
$checkout->setToken([token], true);
21. Get information of payment
//getting payment information
$info = $checkout->setToken([token])
->setAmount(‘[amount]’)
->setCurrency(‘[currency]’)
->getTransactionId(‘[PayerID]’);
22. Use Eden on all of My Projects
OR
Code From Scratch?