Examples

If you have any questions or feedback, feel free to @ someone of the team on Twitter, create an issue or open a pull request yourself! :)

Basic connection setup

use FiveamCode\LaravelNotionApi\Notion; 

// Access through Facade (token has to be set in .env, see Installation)
\Notion::databases()->find($databaseId);

// Custom instantiation (necessary if you access more than one Notion integration)
$notion = new Notion($apiToken, $apiVersion); // version-default is 'v1'
$notion->databases()->find($databaseId);

Pages

Blocks

Search

Database

Databases

Properties

Users