Difference between revisions of "Company public service methods"

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

Revision as of 16:47, 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
    Providers color coding plugin
  • user_license
    Terms and conditions plugin

See Plugins page for description for each plugin.