Skip to content

Provider data user day export

GET /v1/ad/provider/data/:provider_id/:user_id/day/export

Request

namenecessarytypedefaultdescribe
start_datefalsestring-数据范围-开始时间(data range - start date)
end_datefalsestring-数据范围-结束时间(data range - end date)

Response data struct

namenecessarytypedefaultdescribe
codetrueint-错误码(error code)
messagetruestring-错误信息(error message)
causetruestring-错误原因(error cause)
detailstrueobject-详情(details)
-urltruestring-下载链接(download url)

Example

  • Query Params:
keyvalue
start_date2022-10-01
end_date2022-10-31
  • Header:
keyvalue
x-api-keyyour's key value
  • Response body:
json
{
    "code": 0,
    "message": "Success",
    "cause": "",
    "details": {
        "url": "http://api-somnoon.com/v1/static/RawData-day-1-20221103193716NIbHj9SX.xlsx?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2NjgwODAyMzYsInNpZ24iOiJSYXdEYXRhLWRheS0xLTIwMjIxMTAzMTkzNzE2TkliSGo5U1gueGxzeCJ9.d8kgAASaO4SQP0Dw_njDAhc-1ofBZ2DFUs0duEj_0Vg"
    }
}
{
    "code": 0,
    "message": "Success",
    "cause": "",
    "details": {
        "url": "http://api-somnoon.com/v1/static/RawData-day-1-20221103193716NIbHj9SX.xlsx?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2NjgwODAyMzYsInNpZ24iOiJSYXdEYXRhLWRheS0xLTIwMjIxMTAzMTkzNzE2TkliSGo5U1gueGxzeCJ9.d8kgAASaO4SQP0Dw_njDAhc-1ofBZ2DFUs0duEj_0Vg"
    }
}