zapisu poprzez interfejs API