简单优化了QQ开放平台 PHP OpenApiV3 SDK
<?php
header("Content-type:text/html;charset=utf-8");
require_once 'OpenApiV3.php';
//============== 配置信息 ==============//
$appid= 100692192;
$appkey= 'php100.com';
$server_name= '119.147.19.43';
$pf= 'pengyou';
$openid= $_GET['openid'];
$openkey= $_GET['openkey'];
//============== 实例化 ==============//
$sdk = new OpenApiV3($appid,$appkey,$server_name);
//============== 应用 ==============//
/*
*获取用户基本资料/v3/user/get_info
http://http://www.zjjv.com///wiki/API%E5%88%97%E8%A1%A8
*/
$arg=array("pf"=>$pf,"openid"=>$openid,"openkey"=>$openkey);//必要参数
$u=$sdk->api("/v3/user/get_info",$arg);
print_r($u);
过几天提供视频教程,一起提供完整的代码,和sdk
0
0