Difference between revisions of "Company public service methods"

From SimplyBook.me
Line 36: Line 36:
 
* timeframe
 
* timeframe
 
* user_public_timeline_type
 
* user_public_timeline_type
 +
 +
====isPluginActivated====
 +
 +
<code>isPluginActivated(pluginName)</code>
 +
 +
Params:
 +
* '''pluginName''' string
 +
 +
Returns boolean (1 or 0).
 +
 +
Return plugin status true if status active, else false. <code>pluginName</code> parameter is a plugin. Can be one of the following values:
 +
 +
* 'advanced_notification' Book Soon notification system plugin
 +
* 'any_unit' Any Employee selector plugin
 +
* 'api' API plugin
 +
* 'approve_booking' Approve booking plugin
 +
* 'back_to_site' Take me back home plugin
 +
* 'contact_widget' Contact widget plugin
 +
* 'counter' Visitor Counter plugin
 +
* 'custom_css' Custom CSS plugin
 +
* 'data_security' Clean history plugin
 +
* 'description' HTML description field for events
 +
* 'event_category' Service categories plugin
 +
* 'event_field' Additional fields plugin
 +
* 'facebookImage' Facebook client info plugin
 +
* 'financial_dashboard' Insights plugin
 +
* 'google_analytics' Google Adwords and analytics plugin
 +
* 'google_calendar_export' Google calendar sync plugin
 +
* 'group_booking' Group bookings plugin
 +
* 'hipaa' HIPAA plugin
 +
* 'limit_bookings' Limit bookings plugin
 +
* 'location' Unit location plugin
 +
* 'mobile_app_backend' Mobile application plugin
 +
* 'multiple_booking' Multiple bookings plugin
 +
* 'news' News plugin
 +
* 'paid_events' Accept payments plugin
 +
* 'promo' Simply Smart Promotions plugin
 +
* 'recap' Daily report plugin
 +
* 'secure' SSL plugin
 +
* 'status' Status plugin
 +
* 'unit_colors' Provider's color coding plugin
 +
* 'user_license' Terms and conditions plugin

Revision as of 16:45, 14 December 2015

You can find full list of Company public service] API methods here.

getCompanyParam

getCompanyParam(key)

Params:

  • key string

Returns string.

getCompanyParam API method returns configuration value for specified key. Method return invalid params error (code -32602) in case if specified key not allowed.

Possible values of key parameter:

  • allow_delay_payment
  • allow_event_breaktime_break
  • allow_event_day_break
  • company_timezone
  • date_format
  • fixed_country_prefix
  • hide_sale_tax
  • max_time_till_event
  • min_time_till_event
  • monday_is_first_day
  • payment_timeout
  • require_fields
    String. Client's data fields required for booking. Possible values:
    • phone - phone number is required
    • email - email address is required
    • email_phone - phone number and email address are required
  • sale_tax
  • send_notifications_in_client_timezone
  • show_booking_page_in_client_timezone
  • time_format
  • timeframe
  • user_public_timeline_type

isPluginActivated

isPluginActivated(pluginName)

Params:

  • pluginName string

Returns boolean (1 or 0).

Return plugin status true if status active, else false. pluginName parameter is a plugin. Can be one of the following values:

* 'advanced_notification' Book Soon notification system plugin
* 'any_unit' Any Employee selector plugin
* 'api' API plugin
* 'approve_booking' Approve booking plugin
* 'back_to_site' Take me back home plugin
* 'contact_widget' Contact widget plugin
* 'counter' Visitor Counter plugin
* 'custom_css' Custom CSS plugin
* 'data_security' Clean history plugin
* 'description' HTML description field for events
* 'event_category' Service categories plugin
* 'event_field' Additional fields plugin
* 'facebookImage' Facebook client info plugin
* 'financial_dashboard' Insights plugin
* 'google_analytics' Google Adwords and analytics plugin
* 'google_calendar_export' Google calendar sync plugin
* 'group_booking' Group bookings plugin
* 'hipaa' HIPAA plugin
* 'limit_bookings' Limit bookings plugin
* 'location' Unit location plugin
* 'mobile_app_backend' Mobile application plugin
* 'multiple_booking' Multiple bookings plugin
* 'news' News plugin
* 'paid_events' Accept payments plugin
* 'promo' Simply Smart Promotions plugin
* 'recap' Daily report plugin
* 'secure' SSL plugin
* 'status' Status plugin
* 'unit_colors' Provider's color coding plugin
* 'user_license' Terms and conditions plugin