curl -X 'GET' \
'https://rnote.dev/api/v2/crawler/note/image?note_id=697c0eee000000000a03c308' \
-H 'accept: application/json' \
-H 'X-API-Key: sk-5bc4****************************e175'
import requests
response = requests.get(
"https://rnote.dev/api/v2/crawler/note/image",
params={"note_id": "697c0eee000000000a03c308"},
headers={
"accept": "application/json",
"X-API-Key": "sk-5bc4****************************e175",
},
)
data = response.json()
print(data)
const res = await fetch(
"https://rnote.dev/api/v2/crawler/note/image?note_id=697c0eee000000000a03c308",
{
headers: {
"accept": "application/json",
"X-API-Key": "sk-5bc4****************************e175",
},
}
);
const data = await res.json();
console.log(data);
interface ApiResponse {
success: boolean;
data: Record<string, unknown>;
}
const res = await fetch(
"https://rnote.dev/api/v2/crawler/note/image?note_id=697c0eee000000000a03c308",
{
headers: {
"accept": "application/json",
"X-API-Key": "sk-5bc4****************************e175",
},
}
);
const data: ApiResponse = await res.json();
console.log(data);
import java.net.http.*;
import java.net.URI;
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://rnote.dev/api/v2/crawler/note/image?note_id=697c0eee000000000a03c308"))
.header("accept", "application/json")
.header("X-API-Key", "sk-5bc4****************************e175")
.GET()
.build();
HttpResponse<String> response = client.send(request,
HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET",
"https://rnote.dev/api/v2/crawler/note/image?note_id=697c0eee000000000a03c308", nil)
req.Header.Set("accept", "application/json")
req.Header.Set("X-API-Key", "sk-5bc4****************************e175")
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL =>
"https://rnote.dev/api/v2/crawler/note/image?note_id=697c0eee000000000a03c308",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"accept: application/json",
"X-API-Key: sk-5bc4****************************e175",
],
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;