Skip to content

Commit

Permalink
doc: amend readme on how to use
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricziel authored Aug 4, 2024
1 parent a6eded2 commit cadc6a6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/README.template.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cadc6a6

Please sign in to comment.