forked from jpcnmm/Scripting
-
Notifications
You must be signed in to change notification settings - Fork 3
/
vsco.js
24 lines (20 loc) · 772 Bytes
/
vsco.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
var body = $response.body;
var url = $request.url;
const path1 = '/api/subscriptions/2.1/user-subscriptions/';
let obj = JSON.parse(body);
if (url.indexOf(path1) != -1) {
obj.user_subscription["expires_on_sec"] = 1655536094;
obj.user_subscription["expired"] = false;
obj.user_subscription["payment_type"] = 2;
obj.user_subscription["is_trial_period"] = true;
obj.user_subscription["starts_on_sec"] = 1560831070;
obj.user_subscription["is_active"] = true;
obj.user_subscription["auto_renew"] = true;
obj.user_subscription["last_verified_sec"] = 1560831070;
obj.user_subscription["subscription_code"] = "VSCOANNUAL";
obj.user_subscription["user_id"] = 54624336;
obj.user_subscription["source"] = 1;
body = JSON.stringify(obj);
}
$done({body});
//bynubyta