Last active
August 29, 2015 13:59
-
-
Save kimdwkimdw/10816338 to your computer and use it in GitHub Desktop.
me2day appkey create
This file contains hidden or 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
/* part 1*/ | |
var a = document.createElement("script"); a.src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"; document.body.appendChild(a); | |
for (var i = 6;i<=100;i++) { | |
setTimeout((function(ii) { | |
return function() { | |
$.ajax({ | |
url:"http://me2day.net/api/front/appkey/create", | |
type:"POST", | |
data: { | |
title:"KAIST_C"+ii, | |
description:"C"+ii, | |
app_auth_type:2, | |
app_level:2, | |
callback_url:"", | |
agreement:"on", | |
new_main:true, | |
} | |
}) | |
} })(i),i*1500) | |
} | |
/* part 2 */ | |
// 개발용 -> 배포용 권한변경. | |
$("div.data_list > form").each(function () { | |
$.ajax({ | |
url:$(this).attr("action"), | |
type:"POST", | |
data: { | |
app_auth_type:2, | |
app_level:2, | |
app_callback:"" | |
} | |
}) | |
}) | |
/* part 3 */ | |
//이 줄을 먼저 실행.. | |
JSON.stringify([].concat.apply([],$(".key_value").map(function(e) { return $(this).text() } ))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
이건 웹에서 쓰는 코드라..