Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alway throw Not authrized when we try to get access token #271

Open
ashu4code opened this issue Nov 15, 2021 · 0 comments
Open

alway throw Not authrized when we try to get access token #271

ashu4code opened this issue Nov 15, 2021 · 0 comments

Comments

@ashu4code
Copy link

ashu4code commented Nov 15, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant