2016年(5)
发布时间:2016-08-04 11:54:36
https://open.weixin.qq.com/开发者账号 网站审核通过 获取APPID AppSecret1、授权登陆,重定向到第三方网站,带上临时授权的code2、通过code参数加上AppID和AppSecret等,通过API换取access_token;3、通过access_token进行接口调用,获取用户基本数据资源或帮助用户实现基本操作。第一步:请求c.........【阅读全文】
发布时间:2016-08-04 11:28:15
http://open.weibo.com/ 获取 APP KEY和 APP SECRET第一步:请求用户授权的tokenhttps://api.weibo.com/oauth2/authorize?client_id=[appkey]&redirect_uri=[回调地址]&response_type=code请求参数 必选类型及范围说明client_idtruestring申请应用时分配的AppKey。redirect_uritruestring授权回调地.........【阅读全文】
发布时间:2016-08-03 14:57:52
<?php/* 判断提交的方式是否是post*/if($_SERVER['REQUEST_METHOD'] == "POST"){if(!empty($_POST["name"])){$name = test_imput($_POST["name"]);}}function test_input($data){ $data = trim($data);//去掉字符串左边和右边的空格 $data = stripslashes($data);//去除字符串中的反斜线.........【阅读全文】
发布时间:2016-08-03 14:56:08
1、封装接口文件 response.php<?php/**在另一个页面的调用require_once('./responce.php');Responce::show(200,'success',$data,'json')*/class Response {const JSON = "json";/*** 按综合方式输出通信数据* @param integer $code 状态码* @param string $message 提示信息* @param array $data 数.........【阅读全文】
发布时间:2016-08-03 14:47:59
appid 应用唯一标识 在OAuth2.0认证过程中,appid的值即为oauth_consumer_key的值。appkey 密钥 访问用户资源时用来验证应用的合法性。在OAuth2.0认证过程中,appkey的值即为oauth_consumer_secret的值第一步:qq按钮跳转地址:https://graph.qq.com/oauth2.0/authorize?response_type=code&client_id=[YO.........【阅读全文】