정렬

정렬은 기본적으로 오름차순으로 사용할 수 있습니다. 내림차순으로 정렬하려면 다음을 추가합니다. %20desc (으)로 순서(_O) 매개 변수 값입니다.

필드를 정렬할 수 있는지 확인하려면 리소스 메타데이터에 "정렬 가능한" 매개 변수를 확인하십시오. 이 작업에 대한 자세한 정보는 이 섹션을 참조하십시오.

샘플 요청

  • 알파벳순으로 정렬된 데이터베이스에서 이메일을 검색하기 위한 샘플 GET 요청입니다.

    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>'
    

    요청에 대한 응답입니다.

    code language-none
    {
    "content": [
        "adam@email.com",
        "allison.durance@example.com",
        "amy.dakota@mail.com",
        "andrea.johnson@mail.com",
        ...
    ]
    ...
    }
    
  • 데이터베이스에서 알파벳 내림차순으로 이메일을 검색하기 위한 샘플 GET 요청입니다.

    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>'
    

    요청에 대한 응답입니다.

    code language-none
    {
    "content": [
        "tombinder@example.com",
        "tombinder@example.com",
        "timross@example.com",
        "john.smith@example.com",
        ...
    ]
    }
    
recommendation-more-help
3ef63344-7f3d-48f9-85ed-02bf569c4fff