kjk / notionapi

Unofficial Go API for Notion.so
https://blog.kowalczyk.info/article/c9df78cbeaae4e0cb2848c9964bcfc94/using-notion-api-go-client.html
BSD 2-Clause "Simplified" License
1.81k stars 85 forks source link

fix AggregationResult struct #36

Closed shijianzhiwai closed 3 years ago

shijianzhiwai commented 3 years ago

Sometimes value is an object.

{
  "aggregationResults":[
            {
                "type":"number",
                "value":10
            },
            {
                "type":"date",
                "value":{
                    "type":"datetimerange",
                    "start_date":"2021-03-27",
                    "start_time":"00:00",
                    "end_date":"2021-04-04",
                    "end_time":"00:00",
                    "time_zone":"America/Los_Angeles"
                }
            },
            {
                "type":"number",
                "value":1595.5
            },
            {
                "type":"number",
                "value":3191
            }
        ]
}
kjk commented 3 years ago

thanks!