Bạn đang truy cập vào hệ thôngd CND

Xem demo tại Tại đây
<?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);
?> 
Bạn phải nhúng cnd <script src="https://cache.donggiatri.com/sdk.js"></script>
<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>  

All is Demo data, not real

Random

https://demo.donggiatri.com/avatar/

Random animal

https://demo.donggiatri.com/avatar/?type=animal

Random People

https://demo.donggiatri.com/avatar/?type=user

Animal

https://demo.donggiatri.com/avatar/animal/1.png

People

https://demo.donggiatri.com/avatar/user/1.png