本文整理汇总了PHP中JSSDK::getUserByOpenID方法的典型用法代码示例。如果您正苦于以下问题:PHP JSSDK::getUserByOpenID方法的具体用法?PHP JSSDK::getUserByOpenID怎么用?PHP JSSDK::getUserByOpenID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JSSDK
的用法示例。
在下文中一共展示了JSSDK::getUserByOpenID方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: JSSDK
* User: Han
* Date: 1/02/2016
* Time: 2:56 PM
*/
require_once "functions.php";
require_once "class/jssdk.php";
global $user_class;
echo "Total Discount";
$re = $user_class->get_total_discount(1);
var_dump($re);
echo "Product Price";
$re1 = $user_class->get_product_price(1);
var_dump($re1);
//echo "Insert Data";
//$re2 = $user_class->help_bargin(19, 1);
//var_dump($re2);
echo "Get User By Openid";
$re1 = $user_class->get_user_id_by_openid("oE4-SuFWt2QJAkqskpIuTLBNX8V0");
var_dump($re1);
//echo "Inser New Events";
//$re2 = $user_class->set_new_events(23,2,1);
//var_dump($re2);
echo "Get user starter";
$re3 = $user_class->get_starter_id_by_eventid(1);
var_dump($re3);
$jssdk = new JSSDK();
echo "Get ID";
$id = $jssdk->getUserByOpenID("oSHx9wpKK9IMZqu-oSE7PxZrASAk");
var_dump($id);
$res = $user_class->get_most_discount_ranking();
var_dump($res);