专注于discuz,uchome,dedecms等各类PHP程序仿站(二次开发和模板制作)。

« »
2014-03-07discuz

2,074 阅读

discuz QQ互联获取用户微博地址

$connectService = Cloud::loadClass(‘Service_Connect’);
$connectService->connectMergeMember();
$arr = array();
$arr['oauth_consumer_key'] = $_G['setting']['connectappid'];
$arr['oauth_nonce'] = mt_rand();
$arr['oauth_timestamp'] = TIMESTAMP;
$arr['oauth_signature_method'] = ‘HMAC_SHA1′;
$arr['oauth_token'] = $_G['member']['conuin'];
ksort($arr);
$arr['oauth_signature'] = $connectService->connectGetOauthSignature(‘http://api.discuz.qq.com/connect/getSignature’, $arr, ‘GET’, $_G['member']['conuinsecret']);

$arr['version'] = ‘qzone1.0′;

$utilService = Cloud::loadClass(‘Service_Util’);
$result = $connectService->connectOutputPhp(‘http://api.discuz.qq.com/connect/getSignature?’ . $utilService->httpBuildQuery($arr, ”, ‘&’));
print_r($result);

原创文章如转载,请注明:转载自火跃工作室
本文网址:http://www.huoyue.org/discuz-qq-weibo

日志信息 »

该日志于2014-03-07 20:36由 火跃 发表在discuz分类下, 评论已关闭。

相关日志 »

没有评论

抱歉,评论被关闭