[DISPONIBILITÀ LIMITATA]{class="badge informative" title="Limitato agli utenti Campaign Standard migrati"}

Ordinamento

L’ordinamento è disponibile per impostazione predefinita in ordine crescente. Per ordinare in ordine decrescente, aggiungere %20desc al valore del parametro _order.

Per sapere se un campo può essere ordinato, controlla il parametro "sortable" nei metadati della risorsa. Per ulteriori informazioni al riguardo, consulta questa sezione.

Richieste di esempio

  • Richiesta di GET di esempio per recuperare le e-mail nel database in ordine alfabetico.

    code language-none
    -X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/profile/email?_order=email \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer <ACCESS_TOKEN>' \
    -H 'Cache-Control: no-cache' \
    -H 'X-Api-Key: <API_KEY>'
    

    Risposta alla richiesta.

    code language-none
    {
    "content": [
        "adam@email.com",
        "allison.durance@example.com",
        "amy.dakota@mail.com",
        "andrea.johnson@mail.com",
        ...
    ]
    ...
    }
    
  • Richiesta di GET di esempio per recuperare l’e-mail nel database in ordine alfabetico decrescente.

    code language-none
    -X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/profile/email?_order=email%20desc \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer <ACCESS_TOKEN>' \
    -H 'Cache-Control: no-cache' \
    -H 'X-Api-Key: <API_KEY>'
    

    Risposta alla richiesta.

    code language-none
    {
    "content": [
        "tombinder@example.com",
        "tombinder@example.com",
        "timross@example.com",
        "john.smith@example.com",
        ...
    ]
    }
    
recommendation-more-help
7167b251-0f24-48cd-a4e0-234fe2acbdea