コード例 #1
0
        public static LinkedInDataProvider GetLinkedInDataProviderForCurrentUser()
        {
            IConsumerTokenManager tokenManager = null;
            string accessToken = null;

            string consumerKey = KeyStorage.Get(SocialMediaConstants.ConfigKeyLinkedInConsumerKey);
            string consumerKeySecret = KeyStorage.Get(SocialMediaConstants.ConfigKeyLinkedInConsumerSecretKey);

            accessToken = KeyStorage.Get(SocialMediaConstants.ConfigKeyLinkedInDefaultAccessToken);
            if (String.IsNullOrEmpty(accessToken)) return null;
            tokenManager = new LinkedInDefaultAccountTokenManager(consumerKey, consumerKeySecret);
            return new LinkedInDataProvider(tokenManager, accessToken);
        }
コード例 #2
0
        public static LinkedInDataProvider GetLinkedInDataProviderForCurrentUser()
        {
            IConsumerTokenManager tokenManager = null;
            string accessToken = null;

            string consumerKey       = KeyStorage.Get(SocialMediaConstants.ConfigKeyLinkedInConsumerKey);
            string consumerKeySecret = KeyStorage.Get(SocialMediaConstants.ConfigKeyLinkedInConsumerSecretKey);

            accessToken = KeyStorage.Get(SocialMediaConstants.ConfigKeyLinkedInDefaultAccessToken);
            if (String.IsNullOrEmpty(accessToken))
            {
                return(null);
            }
            tokenManager = new LinkedInDefaultAccountTokenManager(consumerKey, consumerKeySecret);
            return(new LinkedInDataProvider(tokenManager, accessToken));
        }