Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //mengatasi akun deaktif error url
- function check_url(url) {
- try {
- response = UrlFetchApp.fetch(url)
- if(response.getResponseCode() == 200 ) {
- console.log('['+x+'] = 200 - kirim "'+AsoePengumuman+'" ke '+id[x]+'')
- return true
- } else if(response.getResponseCode() == 401 ) {
- console.log('401')
- return "401"
- }
- }
- catch(err) {
- return "Not Valid"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement