LinkedIn-API r_emailaddress 不回邮件

LinkedIn-API r_emailaddress not retruning email

我正在使用 linkedin Oauth API(我的应用程序完全正常工作并正确设置了范围 r_emailaddress)而且我似乎无法 return 发送电子邮件,我可以return 它与 curl 但不是我的代码,

const userEmail = await fetch("https://api.linkedin.com/v2/emailAddress?q=members&projection=(elements*(handle~))", {
            method: "GET",
            headers: {
                "Authorization": "Bearer " + accessToken,
                "Accept": "application/json"
            }
        });
        const userMail = await userEmail.json();
        console.log(userMail)

此代码 returns elements: [ { 'handle~': [Object], handle: 'urn:li:emailAddress:8238802378' } ]

应该"elements": [{"handle~": {"emailAddress": "example.dev@gmail.com"},"handle": "urn:li:emailAddress:8238802378"}]

大声笑,这修复了它 userMail.elements[0]["handle~"].emailAddress,感谢 Xrysh✅