Created
October 6, 2018 22:06
-
-
Save ohmeqwertreysd/973899f02bb6323ee460340befc698b9 to your computer and use it in GitHub Desktop.
vk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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