This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import os | |
| import requests | |
| import sys | |
| import re | |
| # Environment variables for Paperless API | |
| PAPERLESS_API_URL = os.getenv("PAPERLESS_API_URL", "http://localhost:8000/api") | |
| PAPERLESS_API_TOKEN = os.getenv("SCRIPT_PAPERLESS_API_TOKEN", None) | |
| HEADERS = {"authorization": f"Basic {PAPERLESS_API_TOKEN}"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Simple helper to fetch the bounding boxes | |
| * for a point on the map (lat,lng) by radius. | |
| * | |
| * @param double $lat Latitude | |
| * @param double $lng Longitude | |
| * @param int $radius Radius in km | |
| * @return array |