feat(v1.6): ajout LinkedIn API V2 comme 3e source journal
- Node Fetch-linkedin (LinkedIn REST API v2/posts, OAuth2 predefined credential) - Parser parseLinkedIn() dans Normalise : extrait commentary + UGC text, URL post, thumbnail - Fonction safeJson() parallèle à safeText() pour payloads JSON (vs XML) - Variable LINKEDIN_MEMBER_ID (env n8n) dans l'URL du endpoint - .env.example documenté avec LINKEDIN_MEMBER_ID + comment récupération - counts.linkedin ajouté dans le payload journal.json Prerequis L.1 bloquants (humain Jules) : - Redirect URL n8n dans LinkedIn Developer Portal - Credential LinkedIn OAuth2 créé dans n8n UI - Member ID Jules récupéré via /v2/me et stocké dans env n8n Branche depuis feat/v1.5-E-rsshub (V1.5 pas encore mergé sur main). Pas de modif Astro/Vue — JournalFeed (JournalList.vue) déjà platform-agnostic. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
12
.env.example
12
.env.example
@@ -7,12 +7,18 @@ KIT_API_SECRET_V4=kit_xxx
|
|||||||
PUBLIC_BEHOLD_AEP=
|
PUBLIC_BEHOLD_AEP=
|
||||||
PUBLIC_BEHOLD_JULESNENY=
|
PUBLIC_BEHOLD_JULESNENY=
|
||||||
|
|
||||||
# Journal unifie (PC6 + V1.5-E) - URL JSON agrege par n8n cron 4h UTC
|
# Journal unifie (V1.6) - URL JSON agrege par n8n cron 4h UTC
|
||||||
# Sources : RSSHub self-host (Insta @aep.politique + @julesneny + Substack @julesneny)
|
# Sources : RSSHub self-host (Insta @aep.politique + @julesneny) + Substack natif
|
||||||
# + Atom Gitea natif (git.trans-former.fr/jules.atom)
|
# + Atom Gitea natif (git.trans-former.fr/jules.atom) + LinkedIn API V2
|
||||||
# Override en local : pointer vers un mock /public/data/journal.json par exemple
|
# Override en local : pointer vers un mock /public/data/journal.json par exemple
|
||||||
PUBLIC_JOURNAL_URL=https://data.trans-former.fr/journal.json
|
PUBLIC_JOURNAL_URL=https://data.trans-former.fr/journal.json
|
||||||
|
|
||||||
|
# LinkedIn (V1.6) - Member ID du profil Jules (format numerique, sans urn: prefix)
|
||||||
|
# Recuperer via curl -H "Authorization: Bearer TOKEN" https://api.linkedin.com/v2/me | jq .id
|
||||||
|
# Stocke comme variable d'env n8n (Settings -> Variables) sous le nom LINKEDIN_MEMBER_ID
|
||||||
|
# Le workflow l'utilise comme : urn:li:person:${LINKEDIN_MEMBER_ID}
|
||||||
|
LINKEDIN_MEMBER_ID=
|
||||||
|
|
||||||
# Chatbot upstream (PC7) - URL backend chatbot AEP
|
# Chatbot upstream (PC7) - URL backend chatbot AEP
|
||||||
# V1 : chatbot AEP classique (Mistral Small + 120 fiches)
|
# V1 : chatbot AEP classique (Mistral Small + 120 fiches)
|
||||||
# V1.5 : switch vers LightRAG-PE (1 ligne)
|
# V1.5 : switch vers LightRAG-PE (1 ligne)
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user