Completed
Push — master ( 026b2f...fbea6a )
by Taosikai
11:48
created

examples/get_friend_qq.php (1 issue)

Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
/**
3
 * 获取好友QQ号.
4
 */
5
use Slince\SmartQQ\Client;
6
7
include __DIR__.'/bootstrap.php';
8
9
//创建smartQQ客户端
10
$smartQQ = new Client(getCredential());
11
12
$friend = $smartQQ->getFriends()->first();
13
14
//获取用户的QQ号
15
$qq = $smartQQ->getFriendQQ($friend);
0 ignored issues
show
Deprecated Code introduced by
The method Slince\SmartQQ\Client::getFriendQQ() has been deprecated with message: 此接口 Smartqq 官方已经不再提供

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
16
17
printR($qq);
18
printR($friend->getQq());