module Hominid module Helper # HELPER METHODS def account_details # Retrieve lots of account information including payments made, plan info, # some account stats, installed modules, contact info, and more. No private # information like Credit Card numbers is available. # # Parameters: # options (Hash) = # # Returns: # An array of account details for this API key including: # username (String) = The Account username. # user_id (String) = The Account user unique id (for building some links). # is_trial (Boolean) = Whether the Account is in Trial mode. # timezone (String) = The timezone for the Account. # plan_type (String) = Plan Type - "monthly", "payasyougo", or "free". # plan_low (Integer) = Only for Monthly plans - the lower tier for list size. # plan_high (Integer) = Only for Monthly plans - the upper tier for list size. # plan_start_date (DateTime) = Only for Monthly plans - the start date for a monthly plan. # emails_left (Integer) = Only for Free and Pay-as-you-go plans emails credits left for the account. # pending_monthly (Boolean) = Whether the account is finishing Pay As You Go credits before switching to # a Monthly plan. # first_payment (DateTime) = Date of first payment. # last_payment (DateTime) = Date of most recent payment. # times_logged_in (Integer) = Total number of times the account has been logged into via the web. # last_login (DateTime) = Date/time of last login via the web. # affiliate_link (String) = Monkey Rewards link for our Affiliate program. # contact (Array) = Contact details for the account, including: First & Last name, email, company # name, address, phone, and url. # addons (Array) = Addons installed in the account and the date they were installed. # orders (Array) = Order details for the account, include order_id, type, cost, date/time, and any # credits applied to the order. # hash_to_object(call("getAccountDetails")) end def inline_css(html, strip_css = false) # Send your HTML content to have the CSS inlined and optionally remove the original styles. # # Paramters: # html (String) = Your HTML content. # strip_css (Boolean) = Whether you want the CSS