Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p = n.n(f),
- m = n.n(h),
- P = function(e, t) {
- var url = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "//zingmp3.vn/api";
- t.ctime = secondsSinceEpoch()
- t.sig = O(e, t)
- t.api_key = b.b
- return url + e + "?" + buildQueryString(t)
- },
- O = function(e, t) {
- var n = filterParams(t),
- r = p()("" + n);
- return m()(e + r, b._76)
- }
- // Strip all parameters except ctime and id
- filterParams = function(e) {
- var t = copyObj(e);
- var n = [];
- for (var key in t)
- if ("ctime" !== key && "id" !== key)
- continue;
- if (null !== e[key] && void 0 !== e[key])
- n[key] = t[key];
- return buildQueryString(n)
- }
- // Build query string from arguments whose length doesn't exceed 5000
- buildQueryString = function(e) {
- var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "&";
- return Object.keys(e).map(function(key) {
- if (encodeURIComponent(e[key]).length > 5000)
- return "";
- return encodeURIComponent(key) + "=" + encodeURIComponent(e[key])
- }).filter(function(e) {
- return "" !== e
- }).join(t)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement