net3000.linkedin 1.0.0

dotnet add package net3000.linkedin --version 1.0.0
                    
NuGet\Install-Package net3000.linkedin -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="net3000.linkedin" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="net3000.linkedin" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="net3000.linkedin" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add net3000.linkedin --version 1.0.0
                    
#r "nuget: net3000.linkedin, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package net3000.linkedin@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=net3000.linkedin&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=net3000.linkedin&version=1.0.0
                    
Install as a Cake Tool

Net3000.LinkedIn

Overview

The Net3000.LinkedIn library provides comprehensive integration with LinkedIn's API for Net3000 solutions. This library enables professional networking functionality, content management, company page administration, and LinkedIn data retrieval for business and professional applications.

Features

  • Professional Networking: Manage LinkedIn connections and professional relationships
  • Content Management: Post and manage LinkedIn content and articles
  • Company Pages: Administer LinkedIn company pages and business profiles
  • Analytics: Access LinkedIn analytics and engagement metrics
  • Lead Generation: Generate and manage LinkedIn leads
  • Social Selling: Support for LinkedIn Sales Navigator integration

Installation

dotnet add package net3000.linkedin

Dependencies

  • net3000.common (v9.0.11)
  • net3000.common.models (v1.0.7)
  • net3000.servicecoordinator (v1.0.0)
  • Microsoft.EntityFrameworkCore (v9.0.9)
  • Microsoft.Extensions.Configuration (v9.0.9)
  • Newtonsoft.Json (v13.0.4)

Configuration

Add your LinkedIn API credentials to your configuration:

{
  "LinkedIn": {
    "ClientId": "your-linkedin-client-id",
    "ClientSecret": "your-linkedin-client-secret",
    "RedirectUri": "https://your-app.com/callback",
    "Scope": "r_liteprofile,r_emailaddress,w_member_social"
  }
}

Usage

Basic Setup

using Net3000.LinkedIn;

// Initialize the LinkedIn service
var linkedInService = new LinkedInService(configuration);

Authentication

// Get authorization URL
var authUrl = linkedInService.GetAuthorizationUrl();

// Exchange authorization code for access token
var accessToken = await linkedInService.ExchangeCodeForTokenAsync(authorizationCode);

// Set access token for API calls
linkedInService.SetAccessToken(accessToken);

Profile Management

// Get user profile
var profile = await linkedInService.GetUserProfileAsync();

// Update profile information
await linkedInService.UpdateProfileAsync(profileData);

// Get company profile
var companyProfile = await linkedInService.GetCompanyProfileAsync("company-id");

Content Management

// Share content on LinkedIn
var shareResult = await linkedInService.ShareContentAsync(
    text: "Check out this amazing content!",
    url: "https://example.com/article"
);

// Share with image
var imageShareResult = await linkedInService.ShareImageAsync(
    text: "Amazing image!",
    imageUrl: "https://example.com/image.jpg"
);

// Get user's posts
var posts = await linkedInService.GetUserPostsAsync();

Company Page Management

// Get company pages
var companyPages = await linkedInService.GetCompanyPagesAsync();

// Post to company page
var pagePost = await linkedInService.PostToCompanyPageAsync(
    companyId: "company-id",
    text: "Company update!",
    url: "https://example.com/news"
);

// Get page analytics
var analytics = await linkedInService.GetPageAnalyticsAsync("company-id");

API Reference

LinkedInService Class

Main service class for LinkedIn API integration.

Methods
  • GetAuthorizationUrl() - Get OAuth authorization URL
  • ExchangeCodeForTokenAsync() - Exchange authorization code for access token
  • GetUserProfileAsync() - Retrieve user profile information
  • UpdateProfileAsync() - Update user profile
  • GetCompanyProfileAsync() - Get company profile information
  • ShareContentAsync() - Share content on LinkedIn
  • ShareImageAsync() - Share image content
  • GetUserPostsAsync() - Get user's posts
  • GetCompanyPagesAsync() - Get managed company pages
  • PostToCompanyPageAsync() - Post content to company page
  • GetPageAnalyticsAsync() - Get page analytics data

Models

  • LinkedInProfile - User profile data structure
  • CompanyProfile - Company profile information
  • LinkedInPost - Post content structure
  • PageAnalytics - Analytics data model
  • LinkedInResponse - API response wrapper

Error Handling

Comprehensive error handling with detailed error messages from LinkedIn API. All methods include proper exception handling and return standardized response objects.

Rate Limiting

The library respects LinkedIn API rate limits and includes built-in retry logic for handling temporary rate limit exceeded responses.

Authentication Flow

  • OAuth 2.0 authorization code flow
  • Access token management and refresh
  • Scope-based permissions
  • Secure credential storage

Analytics and Insights

  • Post engagement metrics
  • Profile view statistics
  • Company page analytics
  • Lead generation insights

Security Features

  • Secure OAuth 2.0 implementation
  • Encrypted credential storage
  • Request signing and validation
  • GDPR compliance support

Testing

Use LinkedIn's test environment for development:

  • Test LinkedIn app credentials
  • Test user accounts for development
  • Sandbox environment for testing API calls

License

This library is proprietary to Net3000. Usage is restricted to Net3000.ca solutions and authorized affiliates. Redistribution, sublicensing, or integration with third-party products outside the Net3000 ecosystem is prohibited without written consent from Net3000.

Support

For support and questions, contact the Net3000 development team or visit net3000.ca.

Changelog

v1.0.0

  • Initial release with LinkedIn API integration
  • Professional networking and profile management
  • Content sharing and company page administration
  • Analytics and engagement tracking
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on net3000.linkedin:

Package Downloads
Net3000.Content

CMS tooling for Net3000 solutions. Provides form-processing workflows, content retrieval services, menu utilities, and video helpers that work together with the Net3000 content database.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 135 12/26/2025

Initial release of Net3000 LinkedIn library with professional networking API integration.