随笔分类 - 接口
摘要:<?php const APPID = ''; const MCHID = ''; const KEY = ''; const JS_API_CALL_URL = ''; $openid = ''; $ip = get_client_ip(); $data['openid'] = $openid;
阅读全文
摘要:<?php session_start(); $APPID = ''; $APPSECRET = ''; if (empty($_SESSION['access_token'])) { $info = json_decode(file_get_contents("https://api.weixin
阅读全文
摘要:<?php $APPID = ''; $APPSECRET = ''; $info = json_decode(file_get_contents("https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=
阅读全文
摘要:mweb_url; // $add_url=urlencode(JS_API_CALL_URL.'/Test_1.php'); 如需返回至指定页面,则可以在MWEB_URL后拼接上redirect_url参数,来指定回调页面 // $code_url=$code_url.'&'.$add_url; echo ""; //hea...
阅读全文
摘要:发送成功后微信服务器会返回xml数据 code_url就是链接地址生成二维码就好了 $xml = file_get_contents('php://input'); 用来接收回调参数 回调参考 https://www.cnblogs.com/itxiongwei/p/5531053.html
阅读全文
摘要:选择电脑网站支付,填写信息,创建网站应用 下载demo https://docs.open.alipay.com/54/106682/ 填写配置信息 同步和异步。 1.同步是给用户发的。用get 2.异步是被服务器发的。用post 当一个支付请求被发送到支付渠道方,支付渠道会很快返回一个结果。但是这
阅读全文
摘要:1.微信开放平台申请应用得到 appid appsecret 回调地址填写网站的域名 https://open.weixin.qq.com 2.微信登录跳转 3.微信回调获取token 4.根据token获取用户信息
阅读全文
摘要:1.申请应用 http://open.weibo.com/apps/new?sort=web 2.获取 appkey appsecret 3.填写回调地址 4.下载php的sdk https://github.com/xiaosier/libweibo 5.填写配置文件 6.发送请求 7.获取回调
阅读全文
摘要:一、 1.https://connect.qq.com/ 申请应用 获取 appid appkey 并且填写回调地址 2下载sdk http://wiki.connect.qq.com/sdk%E4%B8%8B%E8%BD%BD 如果出现“client request's parameters ar
阅读全文
摘要:<?php require_once './phpqrcode/phpqrcode.php'; /* * 地址:http://phpqrcode.sourceforge.net/ 下载qrcode类 * @param string $url 要生成的链接 * @param bool $local 是
阅读全文
摘要:PHPMaile发送邮件类 https://github.com/PHPMailer/PHPMailer\ 出现 SMTP Error: Could not authenticate 错误时首先检查各个参数有没有写对 授权码获取 用到密码验证的时候存一个随机值到数据库,用户点击邮件的时候用于验证。
阅读全文

浙公网安备 33010602011771号