排序

排序預設為依遞增順序提供。 若要以遞減順序排序,請附加 %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",
        ...
    ]
    ...
    }
    
  • 以遞減Alpha順序擷取資料庫中電子郵件的範例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