token_record.js 371 Bytes
Newer Older
gzj34291's avatar
gzj34291 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
importClass(Packages.com.hand.hlcm.HttpPostUtil);
importPackage(Packages.java.io);
importPackage(Packages.java.util);
//importClass(Packages.leaf.plugin.util.Base64);

function httpPostGetToken(postUrl,appId,appSecret) {
	try {
		var result = new HttpPostUtil().httpPostGetToken(postUrl,appId,appSecret);
		return result;
	} catch (e) {
		println(e);
		return false;
	}
}