Skip to content

Instantly share code, notes, and snippets.

let obj = JSON.parse($response.body);
obj.data.attributes["is-paid"] = true;
$done({body: JSON.stringify(obj)});
let obj=JSON.parse($response.body)
let url = $request.url;
var cons1 = "me";
var cons2 = "dashboard";
var cons3 = "leaderboard";
if(url.indexOf(cons1) != -1)
{
obj["profile"]["is_pro"]=true;
body= JSON.stringify(obj);
}
var obj = JSON.parse($response.body);
obj.data.VIPExpire= "27/03/9999 00:00:00";
obj.data.isVIP= true;
$done({body: JSON.stringify(obj)});
var obj = JSON.parse($response.body);
obj.data.VIPExpire= "27/03/9999 00:00:00";
obj.data.isVIP= true;
$done({body: JSON.stringify(obj)});
var obj = JSON.parse($response.body);
obj.subscription= {
"granted": true
};
$done({body: JSON.stringify(obj)});
// Mô tả
let obj=JSON.parse($response.body)
let url = $request.url;
var cons1 = "get";
var cons2 = "report";
if(url.indexOf(cons1) != -1)
{
obj=
{
"error_code": 0,
let obj=JSON.parse($response.body)
obj.account["pro_mode"] = true;
obj.account["plan_type"] = "Premium";
obj.account["user_type"] = "Premium";
obj.account["current_period"]["until"] = "2099-10-10T03:27:34";
$done({body:JSON.stringify(obj)})
var obj = JSON.parse($response.body);
obj = {
"status": 0,
"environment": "Production",
"receipt": {
"receipt_type": "Production",
"app_item_id": 1247275033,
"receipt_creation_date": "2019-06-06 11:22:01 Etc/GMT",
"bundle_id": "com.moonlab.unfoldstories",
var obj = JSON.parse($response.body);
obj= {
"autoRenewProductId": "premium_platinum_yearly",
"iosDeviceProductVo": {
"premiumVipWeekly": 3,
"premiumGoldMonthly": 3,
"premiumPlatinumMonthly": 3,
"premiumGoldYearly": 3,
"premiumPlatinumYearly": 2,
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;