D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
cpanel
/
ea-php82
/
root
/
usr
/
share
/
doc
/
pecl
/
oauth
/
examples
/
Filename :
exec_api.php
back
Copy
<?php require("config.inc.php"); try { $o = new OAuth(OAUTH_CONSUMER_KEY,OAUTH_CONSUMER_SECRET,OAUTH_SIG_METHOD_HMACSHA1,OAUTH_AUTH_TYPE_FORM); $access_token_info = unserialize(file_get_contents(OAUTH_TMP_DIR . "/access_token_resp")); $o->setToken($access_token_info["oauth_token"],$access_token_info["oauth_token_secret"]); $arrayResp = $o->fetch("https://www.foo.tld/oauth/an_api_for_user_info",array("extra" => "arg(h)")); echo $o->getLastResponse(); } catch(OAuthException $E) { echo "Response: ". $E->lastResponse . "\n"; }
Name
Size
Last Modified
Owner
Permissions
Actions
digg
Dir
May 20 2024 2:16:04
root
0755
fireeagle
Dir
May 20 2024 2:16:04
root
0755
google
Dir
May 20 2024 2:16:04
root
0755
netflix
Dir
May 20 2024 2:16:04
root
0755
provider
Dir
May 20 2024 2:16:04
root
0755
twitter
Dir
May 20 2024 2:16:04
root
0755
wepay
Dir
May 20 2024 2:16:04
root
0755
yahoo
Dir
May 20 2024 2:16:04
root
0755
README
0.819
KB
May 20 2024 2:16:04
root
0644
access_token.php
0.621
KB
May 20 2024 2:16:04
root
0644
config.inc.php
0.308
KB
May 20 2024 2:16:04
root
0644
exec_api.php
0.531
KB
May 20 2024 2:16:04
root
0644
request_signing.php
0.819
KB
May 20 2024 2:16:04
root
0644
request_token.php
0.592
KB
May 20 2024 2:16:04
root
0644
2017 © D7net | D704T team