Documentation Exemples
Exemples
Les cas courants, prêts à copier. Chaque exemple suppose la clé dans la variable HEYALINK_CLE.
PHP : publier une offre
$reponse = (new GuzzleHttp\Client())->put('https://heyalink.com/api/emploi/v1/offres/CC-2026-014', [
'headers' => ['Authorization' => 'Bearer '.getenv('HEYALINK_CLE'), 'Idempotency-Key' => 'cc-2026-014-v1'],
'json' => ['titre' => 'Chef de chantier gros œuvre', 'lieu' => 'Toulouse (31)', 'type_contrat' => 'CDI'],
]);
Python : retirer une offre
import os, requests
requests.delete("https://heyalink.com/api/emploi/v1/offres/CC-2026-014",
headers={"Authorization": f"Bearer {os.environ['HEYALINK_CLE']}"}).raise_for_status()
Node.js : publier une formation
await fetch('https://heyalink.com/api/formation/v1/formations/F-CACES-482', {
method: 'PUT',
headers: { Authorization: `Bearer ${process.env.HEYALINK_CLE}`, 'Content-Type': 'application/json' },
body: JSON.stringify({ titre: 'CACES R482, engins de chantier', presentation: 'Conduite des pelles de moins de 6 tonnes.', lien: 'https://www.exemple.fr/formations/caces-r482' }),
});
Un catalogue LHEO
Un exemple de fichier à importer : catalogue-lheo.xml.