Skip to content

Instantly share code, notes, and snippets.

View NiklasPieper's full-sized avatar

Niklas Pieper NiklasPieper

  • Germany
View GitHub Profile
@ssddanbrown
ssddanbrown / export-books.php
Last active October 14, 2024 17:02
BookStack-Export-Books
#!/usr/bin/env php
<?php
// API Credentials
// You can either provide them as environment variables
// or hard-code them in the empty strings below.
$apiUrl = getenv('BS_URL') ?: ''; // http://bookstack.local/
$clientId = getenv('BS_TOKEN_ID') ?: '';
$clientSecret = getenv('BS_TOKEN_SECRET') ?: '';