Skip to content

Instantly share code, notes, and snippets.

@ohmeqwertreysd
Created October 6, 2018 22:06
Show Gist options
  • Save ohmeqwertreysd/973899f02bb6323ee460340befc698b9 to your computer and use it in GitHub Desktop.
Save ohmeqwertreysd/973899f02bb6323ee460340befc698b9 to your computer and use it in GitHub Desktop.
vk
var photoget = API.photos.get({album_id: "profile", rev: 1, extented: 1});
var photoid = photoget.items[0].id;
var deletep = API.photos.delete({photo_id: photoid});
var restorep = API.photos.restore({photo_id: photoid});
var check = API.photos.get({album_id: "profile", rev: 1, extented: 1});
if(check.items.length == 0){
return "noclick";
} else {
return "click";
}
var photoget = API.photos.get({album_id: "profile", rev: 1, extented: 1});
var photoid = photoget.items[0].id;
var deletep = API.photos.delete({photo_id: photoid});
var restorep = API.photos.restore({photo_id: photoid});
var check = API.photos.get({album_id: "profile", rev: 1, extented: 1});
if(check.items.length == 0){
return "noclick";
} else {
return "click";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment