
钉钉
k7Cx7e
这个作者很懒,什么都没留下…
展开
-
钉钉签名算法与hash_hmac函数的使用
1、在php中hash_hmac函数就能将HMAC和一部分哈希加密算法相结合起来实现HMAC-SHA1 HMAC-SHA256 HMAC-MD5等等算法。函数介绍如下:string hash_hmac(string $algo, string $data, string $key, bool $raw_output = false)algo:要使用的哈希算法名称,可以是上述提到的md5,sh...原创 2019-01-23 09:20:42 · 2153 阅读 · 5 评论 -
钉钉通过code获取用户信息的实例(PHP)
namespace app\ding\controller;use think\Config;class Index{ public function getUserID($code) { $url = "https://oapi.dingtalk.com/user/getuserinfo?access_token=".$this->getAccessToken()."&...原创 2019-03-26 15:24:00 · 3793 阅读 · 3 评论