Skip to content

Instantly share code, notes, and snippets.

public class FooClient {
private static final String CLIENT_ID = BackendClients.FOO.id;
static final String DOWORK_PATH = "/do-work"; // existing header versioning
static final String DOWORK_V2_PATH = "/v2/do-work"; // new version of existing endpoint path versioning
static final String DOOTHERWORK_V1_PATH = "/v1/do-other-work"; // new endpoint path versioning
private final DynamicHoneycombClient client;
// TO BE DEPRECATED
10.203.35.174:6379> get 101::member_product:cosine:1.0
"{\"shopUserId\": 9739065,\"orderedRecommendations\": [2306,2332,2335,2337,2342,2343,2354,2360,2367,2372,2375,2378,2385,2401,2402,2406,2412,2427,2437,2439,2462,2480,2498,2505,2508,2519,2536,2539,2540,2554,2555,2574,2576,2585,2594,2602,2606,2611,2635,2662,2663,2695,2862,2940,2948,2967,2974,2987,2988,2989,3000,3002,3077,3091,3128,3129,3130,3135,3137,3141,3143,3150,3153,3162,3165,3169,3177,3184,3186,3195,3199,3200,3334,3339,3340,3345,3346,3362,3370,3374,3378,3379,3380,3381,3531,3545,3636,3658,3669,3697,3698,3741,3760,3772,4054,4076,4184,4185,4186,4187,4238,4250,4253,4254,4263,4267,4272,4282,4283,4284,4289,4294,4307,4309,4317,4320,4322,4326,4333,4334,4335,4342,4343,4346,4347,4349,4361,4363,4368,4370,4376,4388,4391,4395,4397,4398,4411,4419,4420,4429,4430,4446,4459,4462,4475,4480,4482,4488,4490,4491,4574,4577,4590,4595,4597,4619,4668,4669,4683,4720,4758,4770,4772,4774,4780,4783,4798,4809,4827,4833,4862,4886,4893,4916,4921,4975,5057,5062,5191,5194,5227,5316,5409
{
"success": true,
"message": null,
"value": {
"metadataChoices": {
"1": {
"choiceId": 1,
"parentChoiceId": null,
"choiceName": "aromatherapy concerns",
"choiceType": "TAGS"
{
"currentBox":{
"id":59,
"name":"Spring 2020",
"year":2020,
"quarter":1,
"description":null,
"imageUrl":"https://static.fabfitfun.com/wp-content/uploads/2020/04/01-January0328-optimzed_1585958179.4151_1585958179.7093.png",
"sku":null,
$billingInfo = new Recurly_BillingInfo();
// billingToken is given back to us from recurly.js javascript library when user provides Credit Card info.
// Credit card info includes bill_first_name & bill_last_name, and should have been validated by recurly.js
// before the token is generated.
$billingInfo->token_id = $billingToken;
$email = 'npdev0205-1@yopmail.com';
$account = new Recurly_Account();
$account->account_code = $email;
$account->email = $email;
MISS, shop_site-options:1:notoptions, get_site_option, /var/www/html/shop/wp-content/plugins/discourse-sso/public/class-discourse-sso.php, get_network_option, /var/www/html/shop/wp-includes/option.php
MISS, shop_site-transient:as3cf_notices, find_notice_by_id, /var/www/html/shop/wp-content/plugins/amazon-s3-and-cloudfront-pro/classes/as3cf-notices.php, get_site_transient, /var/www/html/shop/wp-content/plugins/amazon-s3-and-cloudfront-pro/classes/as3cf-notices.php
MISS, shop_:post_amazonS3_cache:264, filter_content_pagination, , get_post_cache, /var/www/html/shop/wp-content/plugins/amazon-s3-and-cloudfront-pro/classes/filters/as3cf-local-to-s3.php
MISS, shop_:posts:get_pages:a1c8f7c340b447affad82e0c398b121d:0.880355001576709857, get_body_class, /var/www/html/shop/wp-includes/post-template.php, get_pages, /var/www/html/shop/wp-includes/post-template.phpclass="home page-template page-template-page-dashboard page-template-page-dashboard-php page page-id-264 logged-in admin-bar no-customize-support custom-backgrou
no prewarm:
SET, 0, 1575490661003714:shop_:default:is_blog_installed, wp_not_installed, /var/www/html/shop/wp-settings.php, is_blog_installed, /var/www/html/shop/wp-includes/load.php
SET, 0, 1575490661003714:shop_:options:notoptions, members_get_setting, /var/www/html/shop/wp-content/plugins/members/inc/functions-options.php, get_option, /var/www/html/shop/wp-content/plugins/members/inc/functions-options.php
SET, 1800, 1575490662076318:shop_:site-transient:theme_roots, search_theme_directories, /var/www/html/shop/wp-includes/theme.php, set_site_transient, /var/www/html/shop/wp-includes/theme.php
SET, 0, 1575490661003714:shop_:options:notoptions, wc_template_debug_mode, , get_option, /var/www/html/shop/wp-content/plugins/woocommerce/includes/wc-core-functions.php
SET, 0, 1575490661003714:shop_:transient:woocommerce_cache_excluded_uris, prevent_caching, , set_transient, /var/www/html/shop/wp-content/plugins/woocommerce/includes/class-wc-cache-helper.php
SET, 0, 1575490661003714:shop_:wc_session_id:wc_wc_session
no prewarm:
SET, 60, 1575424458655149:shop_:default:profile-userId-9629727, getProfileImage, /var/www/html/shop/wp-content/themes/fabfitfun/template-parts/header/menu-my-account.php, setAvatarUrl, /var/www/html/shop/wp-content/plugins/woocommerce-recurly-subscriptions/models/Profile.php
SET, 0, 1575424458655149:shop_:default:is_blog_installed, wp_not_installed, /var/www/html/shop/wp-settings.php, is_blog_installed, /var/www/html/shop/wp-includes/load.php
SET, 0, 1575424458655149:shop_:options:notoptions, members_get_setting, /var/www/html/shop/wp-content/plugins/members/inc/functions-options.php, get_option, /var/www/html/shop/wp-content/plugins/members/inc/functions-options.php
SET, 1800, 1575424459796322:shop_:site-transient:theme_roots, search_theme_directories, /var/www/html/shop/wp-includes/theme.php, set_site_transient, /var/www/html/shop/wp-includes/theme.php
SET, 0, 1575424458655149:shop_:options:notoptions, wc_template_debug_mode, , get_option, /var/www/html/shop/wp-content/plugins/woocommerce/inclu
////////// DB info + queries ////////////
To get active season's edit or addon campaign id & customize campaign id:
select campaign_id as addon_or_edit_sale_campaign_id, customize_campaign_id from shop_seasons where position = 1;
To get select (and in the future annual_access_select) role's addon/edit shopping window period:
select title, start_date as select_start_date, select_end_date, regular_start_date, end_date as regular_end_date from shop_addons_campaigns where id = 48;
To get regular (non select) role's shopping window period:
select title, regular_start_date, end_date as regular_end_date from shop_addons_campaigns where id = 48;
require_once APPPATH . 'third_party/Recurly215/recurly.php'; // using recurly 2.15 client lib
$subscription = new Recurly_Subscription();
$subscription->plan_code = 'access_trial';
// .. fill in more subscription info
$account = new Recurly_Account();
$account->account_code = 'npstagingac1118_1@yopmail.com';
// .. fill in more account info