From 650bfe958f84cbb3045c33044b46562c51720e0a Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 16 Sep 2025 23:50:00 +0300 Subject: make linkedin version API configurable --- internal/config/config.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/config') diff --git a/internal/config/config.go b/internal/config/config.go index 1504b95..8b101be 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -19,6 +19,10 @@ type Config struct { LinkedInClientID string LinkedInSecret string LinkedInRedirectURL string + // Optional LinkedIn API version header value (e.g., "202502"). + // When set, requests include `LinkedIn-Version: `. + // Leave empty to omit the header and use LinkedIn's default. + LinkedInVersion string `json:"LinkedInVersion,omitempty"` // Will be updated by gos automatically, after successful oauth2 LinkedInAccessToken string `json:"LinkedInAccessToken,omitempty"` // Will be updated by gos automatically, after successful oauth2 -- cgit v1.2.3