From cadc6a6395a727aad596fd965f6c86cbdaec9aee Mon Sep 17 00:00:00 2001 From: Cedric Ziel Date: Sun, 4 Aug 2024 23:43:45 +0200 Subject: [PATCH] doc: amend readme on how to use --- .github/README.template.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/README.template.md b/.github/README.template.md index a181b9b..6f4e767 100644 --- a/.github/README.template.md +++ b/.github/README.template.md @@ -8,6 +8,23 @@ composer require cedricziel/baserow ## Docs +```php +use CedricZiel\Baserow\Generated\Client; + +$baserow = Client::create(null, [ + // optional, default is baserow.io + new AddHostPlugin(new Uri('https://my-baserow.example.com')), + + // use ONE of DatabaseTokenAuthentication + new DatabaseTokenAuthentication('YOUR_TOKEN'), + // OR JWTAuthentication + new JWTAuthentication('JWT Token'), +]); + +// list all rows in table id 42 +$client->listDatabaseTableRows(42); +``` + ### docs ### ## License