🔍 Test de récupération CV CATS

1️⃣ Test récupération candidat

📡 Appel API: https://api.catsone.com/v3/candidates/360241009

🌐 Code HTTP: 200

✅ Réponse reçue

✅ Candidat trouvé: DEMONCHY Gwendoline

📋 Voir données candidat
{
    "id": 360241009,
    "first_name": "DEMONCHY",
    "middle_name": null,
    "last_name": "Gwendoline",
    "title": "Professeure des écoles",
    "emails": {
        "primary": "gwendoline.demonchy@gmail.com",
        "secondary": null
    },
    "address": {
        "street": " 62, chemin des Chênes\t",
        "city": "GRASSE",
        "state": "",
        "postal_code": "06130"
    },
    "country_code": "FR",
    "social_media_urls": [],
    "website": null,
    "phones": {
        "home": null,
        "cell": "33661234877",
        "work": null
    },
    "best_time_to_call": null,
    "current_employer": "NICE MATIN",
    "date_available": null,
    "current_pay": null,
    "desired_pay": null,
    "is_willing_to_relocate": true,
    "key_skills": null,
    "notes": "Epouse Monsieur Garnier Maxime",
    "is_hot": false,
    "is_active": true,
    "contact_id": null,
    "owner_id": 569406,
    "entered_by_id": 569406,
    "source": null,
    "is_registered": false,
    "consent_status": null,
    "date_created": "2021-08-19T12:02:13+00:00",
    "date_modified": "2021-08-19T12:05:44+00:00",
    "_links": {
        "self": {
            "href": "\/candidates\/360241009"
        },
        "custom_fields": {
            "href": "\/candidates\/360241009\/custom_fields"
        },
        "attachments": {
            "href": "\/candidates\/360241009\/attachments"
        },
        "activities": {
            "href": "\/candidates\/360241009\/activities"
        },
        "work_history": {
            "href": "\/candidates\/360241009\/work_history"
        },
        "pipelines": {
            "href": "\/candidates\/360241009\/pipelines"
        },
        "tags": {
            "href": "\/candidates\/360241009\/tags"
        },
        "thumbnail": {
            "href": "\/candidates\/360241009\/thumbnail"
        },
        "phones": {
            "href": "\/candidates\/360241009\/phones"
        },
        "emails": {
            "href": "\/candidates\/360241009\/emails"
        },
        "owner": {
            "href": "\/users\/569406"
        },
        "entered_by": {
            "href": "\/users\/569406"
        }
    },
    "_embedded": {
        "custom_fields": [
            {
                "id": 327097,
                "value": [],
                "_links": {
                    "self": {
                        "href": "\/candidates\/360241009\/custom_fields\/327097"
                    },
                    "definition": {
                        "href": "\/candidates\/custom_fields\/327097"
                    }
                },
                "_embedded": {
                    "definition": {
                        "id": 327097,
                        "data_item_type": "candidate",
                        "name": "Immigration:",
                        "comment": null,
                        "field": {
                            "type": "checkboxes",
                            "selections": [
                                {
                                    "id": 917173,
                                    "label": "En attente de dépôt"
                                },
                                {
                                    "id": 917176,
                                    "label": "A l'immigration"
                                },
                                {
                                    "id": 917179,
                                    "label": "Validé par le MIFI"
                                }
                            ]
                        },
                        "_links": {
                            "self": {
                                "href": "\/candidates\/custom_fields\/327097"
                            }
                        }
                    }
                }
            },
            {
                "id": 327100,
                "value": null,
                "_links": {
                    "self": {
                        "href": "\/candidates\/360241009\/custom_fields\/327100"
                    },
                    "definition": {
                        "href": "\/candidates\/custom_fields\/327100"
                    }
                },
                "_embedded": {
                    "definition": {
                        "id": 327100,
                        "data_item_type": "candidate",
                        "name": "Facturation  Galaxy:",
                        "comment": null,
                        "field": {
                            "type": "dropdown",
                            "selections": [
                                {
                                    "id": 917182,
                                    "label": "Facturation formation"
                                },
                                {
                                    "id": 917185,
                                    "label": "Prise en charge CPF"
                                },
                                {
                                    "id": 917188,
                                    "label": "Prise en charge PERSO"
                                }
                            ]
                        },
                        "_links": {
                            "self": {
                                "href": "\/candidates\/custom_fields\/327100"
                            }
                        }
                    }
                }
            },
            {
                "id": 327142,
                "value": null,
                "_links": {
                    "self": {
                        "href": "\/candidates\/360241009\/custom_fields\/327142"
                    },
                    "definition": {
                        "href": "\/candidates\/custom_fields\/327142"
                    }
                },
                "_embedded": {
                    "definition": {
                        "id": 327142,
                        "data_item_type": "candidate",
                        "name": "Prestation:",
                        "comment": null,
                        "field": {
                            "type": "dropdown",
                            "selections": [
                                {
                                    "id": 917248,
                                    "label": "Permis fermé"
                                },
                                {
                                    "id": 917257,
                                    "label": "Permis ouvert"
                                },
                                {
                                    "id": 917263,
                                    "label": "Permis visisteur"
                                },
                                {
                                    "id": 917251,
                                    "label": "Etudiant"
                                },
                                {
                                    "id": 917254,
                                    "label": "PVT"
                                },
                                {
                                    "id": 917260,
                                    "label": "Jeune Pro"
                                },
                                {
                                    "id": 917266,
                                    "label": "Formation classe 1\/3"
                                }
                            ]
                        },
                        "_links": {
                            "self": {
                                "href": "\/candidates\/custom_fields\/327142"
                            }
                        }
                    }
                }
            },
            {
                "id": 328957,
                "value": null,
                "_links": {
                    "self": {
                        "href": "\/candidates\/360241009\/custom_fields\/328957"
                    },
                    "definition": {
                        "href": "\/candidates\/custom_fields\/328957"
                    }
                },
                "_embedded": {
                    "definition": {
                        "id": 328957,
                        "data_item_type": "candidate",
                        "name": "Métier:",
                        "comment": null,
                        "field": {
                            "type": "text"
                        },
                        "_links": {
                            "self": {
                                "href": "\/candidates\/custom_fields\/328957"
                            }
                        }
                    }
                }
            },
            {
                "id": 347363,
                "value": null,
                "_links": {
                    "self": {
                        "href": "\/candidates\/360241009\/custom_fields\/347363"
                    },
                    "definition": {
                        "href": "\/candidates\/custom_fields\/347363"
                    }
                },
                "_embedded": {
                    "definition": {
                        "id": 347363,
                        "data_item_type": "candidate",
                        "name": "LISTE NOIRE",
                        "comment": null,
                        "field": {
                            "type": "text"
                        },
                        "_links": {
                            "self": {
                                "href": "\/candidates\/custom_fields\/347363"
                            }
                        }
                    }
                }
            },
            {
                "id": 348425,
                "value": null,
                "_links": {
                    "self": {
                        "href": "\/candidates\/360241009\/custom_fields\/348425"
                    },
                    "definition": {
                        "href": "\/candidates\/custom_fields\/348425"
                    }
                },
                "_embedded": {
                    "definition": {
                        "id": 348425,
                        "data_item_type": "candidate",
                        "name": "Lieux de résidence souhaité",
                        "comment": null,
                        "field": {
                            "type": "text"
                        },
                        "_links": {
                            "self": {
                                "href": "\/candidates\/custom_fields\/348425"
                            }
                        }
                    }
                }
            },
            {
                "id": 348428,
                "value": null,
                "_links": {
                    "self": {
                        "href": "\/candidates\/360241009\/custom_fields\/348428"
                    },
                    "definition": {
                        "href": "\/candidates\/custom_fields\/348428"
                    }
                },
                "_embedded": {
                    "definition": {
                        "id": 348428,
                        "data_item_type": "candidate",
                        "name": "Type de permis de travail\/ Etude",
                        "comment": null,
                        "field": {
                            "type": "text"
                        },
                        "_links": {
                            "self": {
                                "href": "\/candidates\/custom_fields\/348428"
                            }
                        }
                    }
                }
            },
            {
                "id": 348815,
                "value": null,
                "_links": {
                    "self": {
                        "href": "\/candidates\/360241009\/custom_fields\/348815"
                    },
                    "definition": {
                        "href": "\/candidates\/custom_fields\/348815"
                    }
                },
                "_embedded": {
                    "definition": {
                        "id": 348815,
                        "data_item_type": "candidate",
                        "name": "Type de trajet",
                        "comment": null,
                        "field": {
                            "type": "text"
                        },
                        "_links": {
                            "self": {
                                "href": "\/candidates\/custom_fields\/348815"
                            }
                        }
                    }
                }
            }
        ],
        "attachments": [
            {
                "id": 572062648,
                "filename": "-CV Gwendoline DEMONCHY-.pdf",
                "is_resume": true,
                "data_item": {
                    "id": 360241009,
                    "type": "candidate"
                },
                "_links": {
                    "self": {
                        "href": "\/attachments\/572062648"
                    },
                    "download": {
                        "href": "\/attachments\/572062648\/download"
                    },
                    "data_item": {
                        "href": "\/candidates\/360241009"
                    }
                }
            }
        ],
        "work_history": [
            {
                "id": 607691671,
                "candidate_id": 360241009,
                "title": "ASSISTANTE",
                "employer": {
                    "linked": false,
                    "name": "Gwendoline (DEMONCHY)",
                    "location": {
                        "city": null,
                        "state": null
                    }
                },
                "supervisor": {
                    "linked": false,
                    "name": null,
                    "phone": null
                },
                "summary": "DE\tGESTION\t\/  DIRECTION\r\n\r\nPROFIL\tPERSONNEL\tEXPÉRIENCE\tPROFESSIONNELLE\r\nDynamique\tgestionnaire   commerciale\tet  logistique, curieuse,\r\nAssistante de Gestion \/ Direction\r\nambitieuse\tet polyvalente, j'ai hâte  de   vivre de   nouveaux\r\ncompétences au service d'un univers qui me correspond.\t2018 À AUJOURD'HUI\r\n- Gestion  de nouveaux   projets (business plans, Benchmark, analyse des retombées économiques, statistiques, )",
                "is_verified": false,
                "is_current": true,
                "start_date": "2018-01",
                "end_date": null,
                "reason_for_leaving": null,
                "_links": {
                    "self": {
                        "href": "\/work_history\/607691671"
                    }
                }
            }
        ],
        "thumbnail": [
            {
                "id": 80855,
                "source": "gravatar",
                "attachment_id": null,
                "url": "https:\/\/recrutementconseilinternational.catsone.com\/candidates\/360241009\/thumbnail?_s=6c35f99271645b60cfc6e91f7af428f891eda1c59400885dd4e38ae9ee649595",
                "_links": {
                    "self": {
                        "href": "\/candidates\/360241009\/thumbnail"
                    }
                }
            }
        ],
        "phones": [
            {
                "id": 293334232,
                "number": "33661234877",
                "extension": null,
                "type": "mobile",
                "date_created": "2021-08-19T12:02:13+0000",
                "date_modified": "2021-08-19T12:05:44+0000",
                "_links": {
                    "self": {
                        "href": "\/candidates\/360241009\/phones\/293334232"
                    }
                }
            }
        ],
        "emails": [
            {
                "id": 223042273,
                "email": "gwendoline.demonchy@gmail.com",
                "isPrimary": true,
                "date_created": "2021-08-19T12:02:13+0000",
                "date_modified": null,
                "_links": {
                    "self": {
                        "href": "\/candidates\/360241009\/emails\/223042273"
                    }
                }
            }
        ]
    }
}

2️⃣ Test récupération attachments

📡 Appel API: https://api.catsone.com/v3/candidates/360241009/attachments

🌐 Code HTTP: 200

✅ Réponse reçue

✅ Réponse attachments reçue

📎 Voir structure attachments
{
    "count": 1,
    "total": 1,
    "_links": {
        "self": {
            "href": "\/candidates\/360241009\/attachments"
        }
    },
    "_embedded": {
        "attachments": [
            {
                "id": 572062648,
                "filename": "-CV Gwendoline DEMONCHY-.pdf",
                "is_resume": true,
                "data_item": {
                    "id": 360241009,
                    "type": "candidate"
                },
                "_links": {
                    "self": {
                        "href": "\/attachments\/572062648"
                    },
                    "download": {
                        "href": "\/attachments\/572062648\/download"
                    },
                    "data_item": {
                        "href": "\/candidates\/360241009"
                    }
                }
            }
        ]
    }
}

⚠️ Structure attendue '_embedded.activities' non trouvée

🔍 Clés disponibles: count, total, _links, _embedded

3️⃣ Test endpoint get_candidate_cats.php

📡 Test de: http://api.rcinternational.ca/api/get_candidate_cats.php?id=360241009

Code HTTP: 301

❌ Pas de données CV dans la réponse

📋 Voir réponse complète
null

🎯 Résumé des actions nécessaires