opauthlinkedin电子邮件

问题描述 投票:0回答:1

我正在编写一些代码,并试图从linkedin中获取电子邮件地址。我看过那里的文档,以确认他们确实支持现在通过api发送电子邮件。

我试图添加'scope'=> r_emailaddress。如果我在响应的原始部分中查看,我会看到email-address,但是似乎没有将['auth'] ['info']数组作为电子邮件添加,因此我没有始终可以从所有人那里收到电子邮件的标准化方法我的各种提供商中。

我也尝试了以下成功的方法。

  • $ this-> mapProfile($ profile,'email','info.email-address');
  • $ this-> mapProfile($ profile,'email','email-address');

有什么想法吗?

http://opauth.org/

php linkedin
1个回答
0
投票

最终是这个。

$this->mapProfile($profile, 'email-address', 'info.email');

您还需要将其添加到linkedinstrategy.php $ defaults变量中

'scope' => 'r_emailaddress'
© www.soinside.com 2019 - 2024. All rights reserved.