Open ashu4code opened 3 years ago
Hi Here is my code. `<?php
include_once('tripit.php');
$api_url = 'https://api.tripit.com/oauth/request_token'; $api_url_access = 'https://api.tripit.com/oauth/access_token'; $oauth_consumer_key = "*"; $oauth_consumer_secret = "*****"; $oauth_credential = new OAuthConsumerCredential($oauth_consumer_key, $oauth_consumer_secret); $tripit = new TripIt($oauth_credential, $api_url); $outhArr=$tripit->get_request_token(); $request_token=$outhArr['oauth_token']; $request_token_secret=$outhArr['oauth_token_secret']; $oauth_credential1 = new OAuthConsumerCredential($oauth_consumer_key, $oauth_consumer_secret, $request_token, $request_token_secret);
$tripit1 = new TripIt($oauth_credential1, $api_url_access);
$final_accesstoken=$tripit1->get_access_token(); echo '
'; print_r($final_accesstoken); die; ?>` always getting Not authorized in response kindly help me
?>`
always getting Not authorized in response kindly help me
Hi Here is my code. `<?php
include_once('tripit.php');
$api_url = 'https://api.tripit.com/oauth/request_token'; $api_url_access = 'https://api.tripit.com/oauth/access_token'; $oauth_consumer_key = "*"; $oauth_consumer_secret = "*****"; $oauth_credential = new OAuthConsumerCredential($oauth_consumer_key, $oauth_consumer_secret); $tripit = new TripIt($oauth_credential, $api_url); $outhArr=$tripit->get_request_token(); $request_token=$outhArr['oauth_token']; $request_token_secret=$outhArr['oauth_token_secret']; $oauth_credential1 = new OAuthConsumerCredential($oauth_consumer_key, $oauth_consumer_secret, $request_token, $request_token_secret);
$tripit1 = new TripIt($oauth_credential1, $api_url_access);
$final_accesstoken=$tripit1->get_access_token(); echo '