SDK Examples
Neolens provides simple and secure access to its REST API through standard HTTP requests. You can use any language or platform capable of making HTTPS requests. Below are a few quick examples using Python, JavaScript, and curl.
- Python
- JavaScript
- curl
import requests
url = "https://api.neolens.ai/v1/scans"
headers = {
"Authorization": "Bearer YOUR_API_TOKEN"
}
response = requests.get(url, headers=headers)
print(response.json())
fetch("https://api.neolens.ai/v1/scans", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_API_TOKEN"
}
})
.then(response => response.json())
.then(data => console.log(data));
curl -X GET https://api.neolens.ai/v1/scans \
-H "Authorization: Bearer YOUR_API_TOKEN"
These examples cover only the basics. For more advanced usage — including file uploads, scan configurations, and streaming — explore the full API reference.