diff --git a/SocialCounter.sln b/SocialCounter.sln index 02a144c..ab30051 100644 --- a/SocialCounter.sln +++ b/SocialCounter.sln @@ -20,6 +20,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "misc", "misc", "{B34D9181-5 .editorconfig = .editorconfig .gitattributes = .gitattributes .gitignore = .gitignore + icon.png = icon.png LICENSE = LICENSE .github\workflows\nuget-publish.yml = .github\workflows\nuget-publish.yml readme.md = readme.md diff --git a/SocialCounter/SocialCounter.Facebook/FacebookCounterClient.cs b/SocialCounter/SocialCounter.Facebook/FacebookCounterClient.cs index e54b214..c5f1299 100644 --- a/SocialCounter/SocialCounter.Facebook/FacebookCounterClient.cs +++ b/SocialCounter/SocialCounter.Facebook/FacebookCounterClient.cs @@ -1,5 +1,5 @@ -using System.Text.RegularExpressions; using Microsoft.Extensions.Logging; +using System.Text.RegularExpressions; namespace SocialCounter.Facebook; diff --git a/SocialCounter/SocialCounter.Facebook/FacebookCounterOptions.cs b/SocialCounter/SocialCounter.Facebook/FacebookCounterOptions.cs index cac2989..8460c7d 100644 --- a/SocialCounter/SocialCounter.Facebook/FacebookCounterOptions.cs +++ b/SocialCounter/SocialCounter.Facebook/FacebookCounterOptions.cs @@ -1,4 +1,4 @@ -using static SocialCounter.ServiceCollectionExtensions; +using static SocialCounter.ServiceCollectionExtensions; namespace SocialCounter.Facebook; diff --git a/SocialCounter/SocialCounter.Facebook/ServiceCollectionExtensions.cs b/SocialCounter/SocialCounter.Facebook/ServiceCollectionExtensions.cs index 7ed5d02..2fb5cf4 100644 --- a/SocialCounter/SocialCounter.Facebook/ServiceCollectionExtensions.cs +++ b/SocialCounter/SocialCounter.Facebook/ServiceCollectionExtensions.cs @@ -1,6 +1,6 @@ -using System.Net; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; +using System.Net; using static SocialCounter.ServiceCollectionExtensions; namespace SocialCounter.Facebook; diff --git a/SocialCounter/SocialCounter.Facebook/SocialCounter.Facebook.csproj b/SocialCounter/SocialCounter.Facebook/SocialCounter.Facebook.csproj index 1ec6149..efaa7f5 100644 --- a/SocialCounter/SocialCounter.Facebook/SocialCounter.Facebook.csproj +++ b/SocialCounter/SocialCounter.Facebook/SocialCounter.Facebook.csproj @@ -1,11 +1,39 @@ - + net8.0 + latest enable enable + Erik Zettersten + Copyright © 2024 Erik Zettersten + SocialCounter + SocialCounter SDK + SocialCounter.Facebook + $(GITHUB_REF_NAME.TrimStart('v')) + + https://github.com/Zettersten/SocialCounter + https://github.com/Zettersten/SocialCounter + git + icon.png + readme.md + true + + true + false + MIT + true + true + false + true + CS1591;CS0618;CS1573 + + + + + diff --git a/SocialCounter/SocialCounter.Instagram/InstagramCounterClient.cs b/SocialCounter/SocialCounter.Instagram/InstagramCounterClient.cs index 955df7d..cc877e7 100644 --- a/SocialCounter/SocialCounter.Instagram/InstagramCounterClient.cs +++ b/SocialCounter/SocialCounter.Instagram/InstagramCounterClient.cs @@ -1,5 +1,5 @@ -using System.Text.RegularExpressions; using Microsoft.Extensions.Logging; +using System.Text.RegularExpressions; namespace SocialCounter.Instagram; diff --git a/SocialCounter/SocialCounter.Instagram/InstagramCounterOptions.cs b/SocialCounter/SocialCounter.Instagram/InstagramCounterOptions.cs index 959d50e..9b776a8 100644 --- a/SocialCounter/SocialCounter.Instagram/InstagramCounterOptions.cs +++ b/SocialCounter/SocialCounter.Instagram/InstagramCounterOptions.cs @@ -1,4 +1,4 @@ -using static SocialCounter.ServiceCollectionExtensions; +using static SocialCounter.ServiceCollectionExtensions; namespace SocialCounter.Instagram; diff --git a/SocialCounter/SocialCounter.Instagram/ServiceCollectionExtensions.cs b/SocialCounter/SocialCounter.Instagram/ServiceCollectionExtensions.cs index 8bdaa3b..c5d3470 100644 --- a/SocialCounter/SocialCounter.Instagram/ServiceCollectionExtensions.cs +++ b/SocialCounter/SocialCounter.Instagram/ServiceCollectionExtensions.cs @@ -1,6 +1,6 @@ -using System.Net; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; +using System.Net; using static SocialCounter.ServiceCollectionExtensions; namespace SocialCounter.Instagram; diff --git a/SocialCounter/SocialCounter.Instagram/SocialCounter.Instagram.csproj b/SocialCounter/SocialCounter.Instagram/SocialCounter.Instagram.csproj index 1ec6149..1580b2c 100644 --- a/SocialCounter/SocialCounter.Instagram/SocialCounter.Instagram.csproj +++ b/SocialCounter/SocialCounter.Instagram/SocialCounter.Instagram.csproj @@ -1,11 +1,39 @@ - + net8.0 + latest enable enable + Erik Zettersten + Copyright © 2024 Erik Zettersten + SocialCounter - Instagram + SocialCounter SDK - Instagram + SocialCounter.Instagram + $(GITHUB_REF_NAME.TrimStart('v')) + + https://github.com/Zettersten/SocialCounter + https://github.com/Zettersten/SocialCounter + git + icon.png + readme.md + true + + true + false + MIT + true + true + false + true + CS1591;CS0618;CS1573 + + + + + diff --git a/SocialCounter/SocialCounter.LinkedIn/LinkedInCounterClient.cs b/SocialCounter/SocialCounter.LinkedIn/LinkedInCounterClient.cs index 7227351..7bc4040 100644 --- a/SocialCounter/SocialCounter.LinkedIn/LinkedInCounterClient.cs +++ b/SocialCounter/SocialCounter.LinkedIn/LinkedInCounterClient.cs @@ -1,5 +1,5 @@ -using System.Text.RegularExpressions; using Microsoft.Extensions.Logging; +using System.Text.RegularExpressions; namespace SocialCounter.LinkedIn; diff --git a/SocialCounter/SocialCounter.LinkedIn/LinkedInCounterOptions.cs b/SocialCounter/SocialCounter.LinkedIn/LinkedInCounterOptions.cs index 2c37d5f..7caaa25 100644 --- a/SocialCounter/SocialCounter.LinkedIn/LinkedInCounterOptions.cs +++ b/SocialCounter/SocialCounter.LinkedIn/LinkedInCounterOptions.cs @@ -1,4 +1,4 @@ -using static SocialCounter.ServiceCollectionExtensions; +using static SocialCounter.ServiceCollectionExtensions; namespace SocialCounter.LinkedIn; diff --git a/SocialCounter/SocialCounter.LinkedIn/ServiceCollectionExtensions.cs b/SocialCounter/SocialCounter.LinkedIn/ServiceCollectionExtensions.cs index 190d213..33ed09c 100644 --- a/SocialCounter/SocialCounter.LinkedIn/ServiceCollectionExtensions.cs +++ b/SocialCounter/SocialCounter.LinkedIn/ServiceCollectionExtensions.cs @@ -1,6 +1,6 @@ -using System.Net; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; +using System.Net; using static SocialCounter.ServiceCollectionExtensions; namespace SocialCounter.LinkedIn; diff --git a/SocialCounter/SocialCounter.LinkedIn/SocialCounter.LinkedIn.csproj b/SocialCounter/SocialCounter.LinkedIn/SocialCounter.LinkedIn.csproj index 1ec6149..870328a 100644 --- a/SocialCounter/SocialCounter.LinkedIn/SocialCounter.LinkedIn.csproj +++ b/SocialCounter/SocialCounter.LinkedIn/SocialCounter.LinkedIn.csproj @@ -1,11 +1,39 @@ - + net8.0 + latest enable enable + Erik Zettersten + Copyright © 2024 Erik Zettersten + SocialCounter + SocialCounter SDK + SocialCounter.LinkedIn + $(GITHUB_REF_NAME.TrimStart('v')) + + https://github.com/Zettersten/SocialCounter + https://github.com/Zettersten/SocialCounter + git + icon.png + readme.md + true + + true + false + MIT + true + true + false + true + CS1591;CS0618;CS1573 + + + + + diff --git a/SocialCounter/SocialCounter.Tests/Startup.cs b/SocialCounter/SocialCounter.Tests/Startup.cs index eb34b9c..ae5901f 100644 --- a/SocialCounter/SocialCounter.Tests/Startup.cs +++ b/SocialCounter/SocialCounter.Tests/Startup.cs @@ -1,4 +1,4 @@ -using Microsoft.Extensions.Hosting; +using Microsoft.Extensions.Hosting; using SocialCounter.Facebook; using SocialCounter.Instagram; using SocialCounter.LinkedIn; diff --git a/SocialCounter/SocialCounter.TikTok/ServiceCollectionExtensions.cs b/SocialCounter/SocialCounter.TikTok/ServiceCollectionExtensions.cs index 18a2c82..c2b1b09 100644 --- a/SocialCounter/SocialCounter.TikTok/ServiceCollectionExtensions.cs +++ b/SocialCounter/SocialCounter.TikTok/ServiceCollectionExtensions.cs @@ -1,6 +1,6 @@ -using System.Net; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; +using System.Net; using static SocialCounter.ServiceCollectionExtensions; namespace SocialCounter.TikTok; diff --git a/SocialCounter/SocialCounter.TikTok/SocialCounter.TikTok.csproj b/SocialCounter/SocialCounter.TikTok/SocialCounter.TikTok.csproj index 2f92043..eb8c394 100644 --- a/SocialCounter/SocialCounter.TikTok/SocialCounter.TikTok.csproj +++ b/SocialCounter/SocialCounter.TikTok/SocialCounter.TikTok.csproj @@ -1,13 +1,41 @@ - + net8.0 + latest enable enable + Erik Zettersten + Copyright © 2024 Erik Zettersten + SocialCounter + SocialCounter SDK + SocialCounter.TikTok + $(GITHUB_REF_NAME.TrimStart('v')) + + https://github.com/Zettersten/SocialCounter + https://github.com/Zettersten/SocialCounter + git + icon.png + readme.md + true + + true + false + MIT + true + true + false + true + CS1591;CS0618;CS1573 - - - + + + + + + + + diff --git a/SocialCounter/SocialCounter.TikTok/TikTokCounterClient.cs b/SocialCounter/SocialCounter.TikTok/TikTokCounterClient.cs index 680959e..74d8df5 100644 --- a/SocialCounter/SocialCounter.TikTok/TikTokCounterClient.cs +++ b/SocialCounter/SocialCounter.TikTok/TikTokCounterClient.cs @@ -1,4 +1,4 @@ -using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Logging; namespace SocialCounter.TikTok; diff --git a/SocialCounter/SocialCounter.TikTok/TikTokCounterOptions.cs b/SocialCounter/SocialCounter.TikTok/TikTokCounterOptions.cs index 6606436..b8586a1 100644 --- a/SocialCounter/SocialCounter.TikTok/TikTokCounterOptions.cs +++ b/SocialCounter/SocialCounter.TikTok/TikTokCounterOptions.cs @@ -1,4 +1,4 @@ -using static SocialCounter.ServiceCollectionExtensions; +using static SocialCounter.ServiceCollectionExtensions; namespace SocialCounter.TikTok; diff --git a/SocialCounter/SocialCounter.X/ServiceCollectionExtensions.cs b/SocialCounter/SocialCounter.X/ServiceCollectionExtensions.cs index 7f3be35..ef258bb 100644 --- a/SocialCounter/SocialCounter.X/ServiceCollectionExtensions.cs +++ b/SocialCounter/SocialCounter.X/ServiceCollectionExtensions.cs @@ -1,6 +1,6 @@ -using System.Net; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; +using System.Net; using static SocialCounter.ServiceCollectionExtensions; namespace SocialCounter.X; diff --git a/SocialCounter/SocialCounter.X/SocialCounter.X.csproj b/SocialCounter/SocialCounter.X/SocialCounter.X.csproj index 1ec6149..ebc7b5f 100644 --- a/SocialCounter/SocialCounter.X/SocialCounter.X.csproj +++ b/SocialCounter/SocialCounter.X/SocialCounter.X.csproj @@ -1,11 +1,39 @@ - + net8.0 + latest enable enable + Erik Zettersten + Copyright © 2024 Erik Zettersten + SocialCounter + SocialCounter SDK + SocialCounter.X + $(GITHUB_REF_NAME.TrimStart('v')) + + https://github.com/Zettersten/SocialCounter + https://github.com/Zettersten/SocialCounter + git + icon.png + readme.md + true + + true + false + MIT + true + true + false + true + CS1591;CS0618;CS1573 + + + + + diff --git a/SocialCounter/SocialCounter.X/XCounterClient.cs b/SocialCounter/SocialCounter.X/XCounterClient.cs index a3a7316..a4cd34f 100644 --- a/SocialCounter/SocialCounter.X/XCounterClient.cs +++ b/SocialCounter/SocialCounter.X/XCounterClient.cs @@ -1,5 +1,5 @@ -using System.Text.RegularExpressions; using Microsoft.Extensions.Logging; +using System.Text.RegularExpressions; namespace SocialCounter.X; diff --git a/SocialCounter/SocialCounter.X/XCounterOptions.cs b/SocialCounter/SocialCounter.X/XCounterOptions.cs index b0cbc0f..864fb4f 100644 --- a/SocialCounter/SocialCounter.X/XCounterOptions.cs +++ b/SocialCounter/SocialCounter.X/XCounterOptions.cs @@ -1,4 +1,4 @@ -using static SocialCounter.ServiceCollectionExtensions; +using static SocialCounter.ServiceCollectionExtensions; namespace SocialCounter.X; diff --git a/SocialCounter/SocialCounter/ServiceCollectionExtensions.cs b/SocialCounter/SocialCounter/ServiceCollectionExtensions.cs index 33c6d74..6516706 100644 --- a/SocialCounter/SocialCounter/ServiceCollectionExtensions.cs +++ b/SocialCounter/SocialCounter/ServiceCollectionExtensions.cs @@ -1,4 +1,4 @@ -using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using static SocialCounter.ServiceCollectionExtensions; @@ -23,6 +23,7 @@ public class SocialCounterOptions public int MaxRetryAttempts { get; set; } = 3; public TimeSpan InitialRetryDelay { get; set; } = TimeSpan.FromSeconds(1); public virtual string BaseAddress { get; set; } = string.Empty; + public IDictionary DefaultHeaders { get; set; } = new Dictionary(); } diff --git a/SocialCounter/SocialCounter/SocialCountResult.cs b/SocialCounter/SocialCounter/SocialCountResult.cs index 12ba65c..49fb1a4 100644 --- a/SocialCounter/SocialCounter/SocialCountResult.cs +++ b/SocialCounter/SocialCounter/SocialCountResult.cs @@ -1,4 +1,4 @@ -namespace SocialCounter; +namespace SocialCounter; public sealed record SocialCountResult(string Platform, string Handle, int Count) { diff --git a/SocialCounter/SocialCounter/SocialCounter.csproj b/SocialCounter/SocialCounter/SocialCounter.csproj index 8bd94e3..723d11a 100644 --- a/SocialCounter/SocialCounter/SocialCounter.csproj +++ b/SocialCounter/SocialCounter/SocialCounter.csproj @@ -1,11 +1,39 @@ - + net8.0 + latest enable enable + Erik Zettersten + Copyright © 2024 Erik Zettersten + SocialCounter + SocialCounter SDK + SocialCounter + $(GITHUB_REF_NAME.TrimStart('v')) + + https://github.com/Zettersten/SocialCounter + https://github.com/Zettersten/SocialCounter + git + icon.png + readme.md + true + + true + false + MIT + true + true + false + true + CS1591;CS0618;CS1573 + + + + + diff --git a/SocialCounter/SocialCounter/SocialCounters.cs b/SocialCounter/SocialCounter/SocialCounters.cs index 8b21db8..a44799d 100644 --- a/SocialCounter/SocialCounter/SocialCounters.cs +++ b/SocialCounter/SocialCounter/SocialCounters.cs @@ -1,4 +1,4 @@ -using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Logging; namespace SocialCounter; diff --git a/SocialCounter/SocialCounter/SocialMediaClient.cs b/SocialCounter/SocialCounter/SocialMediaClient.cs index f8b44cf..a1444fc 100644 --- a/SocialCounter/SocialCounter/SocialMediaClient.cs +++ b/SocialCounter/SocialCounter/SocialMediaClient.cs @@ -1,7 +1,7 @@ -using System.Net; using Microsoft.Extensions.Logging; using Polly; using Polly.Retry; +using System.Net; namespace SocialCounter; diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..29d5f2d Binary files /dev/null and b/icon.png differ diff --git a/readme.md b/readme.md index a57e8ea..6687436 100644 --- a/readme.md +++ b/readme.md @@ -1,3 +1,6 @@ +![BadBotBlocker Icon](https://raw.githubusercontent.com/Zettersten/SocialCounter/main/icon.png) + + # SocialCounter 📊 [![NuGet version](https://badge.fury.io/nu/SocialCounter.svg)](https://badge.fury.io/nu/SocialCounter)