Web storage service for tiny data.
Currently hosting 10 entries.
# Get the stored data with curl.
curl -X GET https://registry.davidday.tw/api/registry/ooooxxxx-oooo-xxxx-oooo-xxxxooooxxxx
# Update the stored data with curl.
curl -X PUT https://registry.davidday.tw/api/registry/ooooxxxx-oooo-xxxx-oooo-xxxxooooxxxx \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $token" \
-d '{"data": "A new doggy!"}'
import requests
# Get the stored data with Python.
r = requests.get('https://registry.davidday.tw/api/registry/ooooxxxx-oooo-xxxx-oooo-xxxxooooxxxx')
# Update the stored data with Python.
payload = {'data': 'A new doggy!'}
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer $token'
}
requests.put('https://registry.davidday.tw/api/registry/ooooxxxx-oooo-xxxx-oooo-xxxxooooxxxx', data=json.dumps(payload), headers=headers)
// Get the stored data with JavaScript.
var r = fetch('https://registry.davidday.tw/api/registry/ooooxxxx-oooo-xxxx-oooo-xxxxooooxxxx')
// Update the stored data with Javascript.
fetch('https://registry.davidday.tw/api/registry/ooooxxxx-oooo-xxxx-oooo-xxxxooooxxxx', {
method: 'PUT',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer $token'
}
body: JSON.stringify({data: 'A new doggy!'})
};
// Get the stored data with PHP.
$r = file_get_contents('https://registry.davidday.tw/api/registry/ooooxxxx-oooo-xxxx-oooo-xxxxooooxxxx')
// Update the stored data with PHP.
$payload = array("data" => "A new doggy!");
$ch = curl_init('https://registry.davidday.tw/api/registry/404eff95-c4ec-45e3-a35c-a2e930c3d930');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT');
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json',
'Authorization: Bearer $token',
));
curl_setopt($ch, CURLOPT_POSTFIELDS,http_build_query($data));
curl_exec($ch);