---
sourceDocument: Référence de l’API Xanadu
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/fr-FR/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - fr-FR

ft:publication_title :

    - Référence de l’API Xanadu

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# GlideOAuthClientResponse : champ d'application, global

# GlideOAuthClientResponse : champ d'application, global {#ariaid-title1}

* Rversion finale: Xanadu
* 
* Mis à jour 1 août 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute de lecture

L'API GlideOAuthClientResponse fournit des méthodes de gestion des réponses du client OAuth.

Vous pouvez utiliser cette API dans les scripts globaux et inclus dans le champ d'application. Dans les scripts inclus dans le périmètre, utilisez l'identificateur `d'espace` de noms sn_auth.

## GlideOAuthClientResponse : getBody() {#ariaid-title2}

Récupère toutes les informations de réponse, y compris les informations d'instance.
{#r_GlideOAuthClientResponseGetBody__table_qc4_bzf_cr__entry__3}

| Nom | Type | Description |
|-|-|-|
| aucun |   |   |
[Tableau 1. Paramètres]

{#r_GlideOAuthClientResponseGetBody__table_qc4_bzf_cr} {#r_GlideOAuthClientResponseGetBody__table_rc4_bzf_cr__entry__2}

| Type | Description |
|-|-|
| Chaîne | Les informations sur la réponse. |
[Tableau 2. Renvoie]

{#r_GlideOAuthClientResponseGetBody__table_rc4_bzf_cr}

## GlideOAuthClientResponse : getContentType() {#ariaid-title3}

Récupère l'en-tête de contenu de la réponse HTTP à partir d'un fournisseur OAuth externe.
{#r_GOACRP-GetContentType__table_qc4_bzf_cr__entry__3}

| Nom | Type | Description |
|-|-|-|
| aucun |   |   |
[Tableau 3. Paramètres]

{#r_GOACRP-GetContentType__table_qc4_bzf_cr} {#r_GOACRP-GetContentType__table_rc4_bzf_cr__entry__2}

| Type | Description |
|-|-|
| Chaîne | L'en-tête de la réponse HTTP. |
[Tableau 4. Renvoie]

{#r_GOACRP-GetContentType__table_rc4_bzf_cr}

## GlideOAuthClientResponse : getErrorMessage() {#ariaid-title4}

Récupère le message d'erreur si l'authentification a échoué.
{#r_GOACRP-GetErrorMessage__table_qc4_bzf_cr__entry__3}

| Nom | Type | Description |
|-|-|-|
| aucun |   |   |
[Tableau 5. Paramètres]

{#r_GOACRP-GetErrorMessage__table_qc4_bzf_cr} {#r_GOACRP-GetErrorMessage__table_rc4_bzf_cr__entry__2}

| Type | Description |
|-|-|
| Chaîne | Message d'erreur. |
[Tableau 6. Renvoie]

{#r_GOACRP-GetErrorMessage__table_rc4_bzf_cr}

## GlideOAuthClientResponse : getResponseCode() {#ariaid-title5}

Récupère le code de réponse HTTP à partir du fournisseur OAuth externe.
{#r_GOACRP-GetResponseCode__table_qc4_bzf_cr__entry__3}

| Nom | Type | Description |
|-|-|-|
| aucun |   |   |
[Tableau 7. Paramètres]

{#r_GOACRP-GetResponseCode__table_qc4_bzf_cr} {#r_GOACRP-GetResponseCode__table_rc4_bzf_cr__entry__2}

| Type | Description |
|-|-|
| Chaîne | Le code de réponse HTTP. |
[Tableau 8. Renvoie]

{#r_GOACRP-GetResponseCode__table_rc4_bzf_cr}

## GlideOAuthClientResponse : getResponseParameters() {#ariaid-title6}

Récupère le message d'erreur si l'authentification a échoué.
{#r_GOACRP-GetResponseParameters__table_qc4_bzf_cr__entry__3}

| Nom | Type | Description |
|-|-|-|
| aucun |   |   |
[Tableau 9. Paramètres]

{#r_GOACRP-GetResponseParameters__table_qc4_bzf_cr} {#r_GOACRP-GetResponseParameters__table_rc4_bzf_cr__entry__2}

| Type | Description |
|-|-|
| Chaîne de mappage | Le contenu de la réponse. |
[Tableau 10. Renvoie]

{#r_GOACRP-GetResponseParameters__table_rc4_bzf_cr}

## GlideOAuthClientResponse : getToken() {#ariaid-title7}

Récupère le jeton d'actualisation.
{#r_GlideOAuthClientResponseGetToken__table_qc4_bzf_cr__entry__3}

| Nom | Type | Description |
|-|-|-|
| aucun |   |   |
[Tableau 11. Paramètres]

{#r_GlideOAuthClientResponseGetToken__table_qc4_bzf_cr} {#r_GlideOAuthClientResponseGetToken__table_rc4_bzf_cr__entry__2}

| Type | Description |
|-|-|
| GlideOAuthToken | Le jeton d'actualisation. |
[Tableau 12. Renvoie]

{#r_GlideOAuthClientResponseGetToken__table_rc4_bzf_cr}

