pitchmuc / aepp

Adobe Experience Platform API for humans
Apache License 2.0
28 stars 17 forks source link

Support UPS Exports #19

Open cmenguy opened 1 year ago

cmenguy commented 1 year ago

It would be very useful to support UPS Exports that are available via API - both for profiles, events and profile+events.

For example to export profile data aggregated with events:

{
  "filter": {
    "segmentQualificationTime": {
      "startTime": "2022-12-04T00:00:00Z",
      "endTime": "2023-01-04T00:00:00Z"
    },
    "emptyProfiles": false
  },
  "additionalFields": {
    "eventList": {
      "filter": {
        "fromIngestTimestamp": "2022-12-04T00:00:00Z",
        "toIngestTimestamp": "2023-01-04T00:00:00Z"
      }
    }
  },
  "destination": {
    "datasetId": "{{upsExportDataset}}",
    "segmentPerBatch": false
  },
  "schema": {
    "name": "_xdm.context.profile"
  },
  "properties": {
      "checkBatchStatusForSuccess": true
  }
}

I can help with that if you are open to it as I've been intimately familiar with this API for the past few months and there's a few caveats for best practices in what should be provided by the user.

pitchmuc commented 1 year ago

I am happy to leave that one for you.