summaryrefslogtreecommitdiff
path: root/internal/config
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-09-16 23:50:00 +0300
committerPaul Buetow <paul@buetow.org>2025-09-16 23:50:00 +0300
commit650bfe958f84cbb3045c33044b46562c51720e0a (patch)
tree469721d25f6d362c15f3aa153e0da7e966417272 /internal/config
parent2c076a24fd94a64b4da8b3e7682a27c99d24cc0d (diff)
make linkedin version API configurable
Diffstat (limited to 'internal/config')
-rw-r--r--internal/config/config.go4
1 files changed, 4 insertions, 0 deletions
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: <value>`.
+ // 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