Bạn đang truy cập vào hệ thôngd CND
<?php include_once "cacheSDK.php"; $cache = cacheSDK(["api_key"=>"Test"]); $cache->upload($file); $cache->delete($file); // $cache->profile(); ?>
Bạn có thể dùng GET
<?php
$apikey = "TEST";
$domain = $_SERVER['HTTP_HOST'];
$url = "https://{$domain}/tmp/test.jpg";
$res = json_decode(file_get_contents("https://cache.donggiatri.com/post.php?domain={$domain}&api_key={$apikey}&url=".rawurlencode($url)));
print_r($res);
?>
<script>
var cache = cacheSDK.init({"api_key":"Test"});
cache.upload(file).then(function(res){
});
cache.delete(file).then(function(res){
});
cache.profile().then(function(res){
});
</script>
Bạn có thể dùng UI Picker
<script>
var cache = cacheSDK.init({"api_key":"Test"});
cache.picker().then(function(res){
});
</script>
Random
Random animal
Random People
Animal
People