notionapi

A Notion API SDK, written in Golang

BSD-2-CLAUSE License

Stars
503
notionapi - 2021-08-16 api version support

Published by jomei about 3 years ago

  • Add Database#Create method
  • Add Block#Get method
  • Add Block#Update method
  • Set 2021-08-16 API version by default
notionapi - Add "archived" field to the Page structure

Published by jomei about 3 years ago

  • Add Archived field to the Page structure. Thanks, @kanata2!
  • Fix Date structure unmarshalling error. Thanks, @jhchabran!
notionapi - Database Update support and fixes

Published by jomei about 3 years ago

  • Create/Updates requests with nil body results in a JSON parsing error. Fix #11
  • Add database update request. Thanks, @kanata2! 🔥
notionapi - Properties rework

Published by jomei about 3 years ago

Fix #7

Page and Database properties were separated into two sets of structs. Page now contains Properties and Database contains PropertiesConfig

notionapi - Fix empty filters parsing error

Published by jomei about 3 years ago

Thanks, @mustafasegf!

notionapi - Fix empty list children

Published by jomei about 3 years ago

Thanks @mustafasegf 👍

notionapi - Filters rework

Published by jomei about 3 years ago

The Filter interface was removed.
The DatabaseQueryRequest now provides two fields: a PropertyFilter for simple filters and a CompoundFilter for complex ones.

PropertyFilter struct was reworked. The messy map[Condition]interface{} was replaced by a set of well-defined FilterCondition structs.

notionapi - Add "children" property to paragraph block

Published by jomei about 3 years ago

notionapi - Add recently added supported currency formats

Published by jomei about 3 years ago

The number property type in databases now supports additional currency options.

The new options are:

  • "hong_kong_dollar"
  • "new_zealand_dollar"
  • "krona"
  • "norwegian_krone"
  • "mexican_peso"
  • "rand"
  • "new_taiwan_dollar"
  • "danish_krone"
  • "zloty"
  • "baht"
  • "forint"
  • "koruna"
  • "shekel"
  • "chilean_peso"
  • "philippine_peso"
  • "dirham"
  • "colombian_peso"
  • "riyal"
  • "ringgit"
  • "leu"
notionapi - Add omitempty to Option fields that are not required

Published by jomei over 3 years ago

notionapi - Add SelectOptionProperty and some fixes

Published by jomei over 3 years ago

  • Fix URLProperty and FileProperty parsing.
  • Added SelectOptionProperty to distinguish page select property and database select property

Thanks, @shayanh 🔥

notionapi - Add URL field to the Page structure

Published by jomei over 3 years ago

Thanks, @adwinying 🔥

notionapi - Fix empty property field at sort object

Published by jomei over 3 years ago

Fix for #1: Omit property field at SortObject if it's empty.
Thanks, @redaLaanait!

notionapi - Ready to use

Published by jomei over 3 years ago

All endpoint are supported and covered by tests

notionapi - Initial Release

Published by jomei over 3 years ago