0

これを行う場合、LinkedInからの入力で:

LoginRadiusSDKv2.LoginRadius loginradius = new LoginRadiusSDKv2.LoginRadius("<API SECRET>");
if (loginradius.IsAuthenticated)
{
    var userprofile = loginradius.GetBasicUserProfile();

有用なデータは返されず、userprofile.IDのみが返されます。他のプロバイダーの場合は、電子メールアドレスを表示します(Twitterの場合はuserprofile.ProfileName)。

LinkedInに何を表示しますか?この特定のプロバイダーのLoginRadiusWebサイトでドキュメントを見つけることができました。

4

1 に答える 1

0

Todd-基本的なユーザープロファイルデータがそのユーザーのIDプロバイダーに存在する場合は、それを取得できます。LinkedinとTwitterは、ユーザープロファイルデータに電子メールアドレスを提供していないため、特別なチェックを追加する必要があります。

if (userprofile.Email != null) {  }

次のパラメータを使用して、より多くのデータを取得できます。

userprofile.FirstName //first name of user
userprofile.FullName //full name of user
userprofile.Gender //gender of user
userprofile.ID //ID of user on provider
userprofile.LastName //last name of user
userprofile.MiddleName //middle name of user  
userprofile.NickName //nick name of user

ASP.net SDKの詳細については、次のリンクを参照してください:https ://www.loginradius.com/developers/implementation/dot-net-websites

いくつかの追加情報:
リアルタイムで存在するデータを確認するには、PlayGroundセクションでデータを表示できます:https ://www.loginradius.com/developers/apiplayground

LoginRadiusの実装について他に情報が必要な場合はお知らせください。

ありがとう、
ディーパック

于 2012-04-25T15:44:56.433 に答える