Andy Butland wrote:
Thanks, I’ve sent an email.
Andy Butland wrote:
Thanks, I’ve sent an email.
Redmine Admin wrote:
Hi, you can use following method API documentation | SimplyBook.me Online Scheduling
Keys you may need are
'min_time_till_event' 'max_time_till_event' 'date_format'
Andy Butland wrote:
Thanks for adding that so quickly. Unfortunately I’m not seeing these values (just getting an empty array back). Could be I’m calling it wrong so here’s the details, if you could advise please if I need to tweak the request I’m making.
{Method: POST, RequestUri: ‘https://user-api.enterpriseappointments.com/’, Version: 2.0, Headers:
{
X-Company-Login: testsubsystem1
X-Token: 582742e7a13b3799243ca9ea6b5b824e5e2535c47768e8f06ee76636a91d0bda
Content-Type: application/json; charset=utf-8
Content-Length: 158
}}
Content:
{“jsonppc”:“2.0”,“method”:“getCompanyParams”,“params”:[“min_time_till_event”,“max_time_till_event”,“date_format”],“id”:“cbe0bdc7-20f7-497e-995b-4a6ceb424b60”}
Result:
{“result”:,“id”:“cbe0bdc7-20f7-497e-995b-4a6ceb424b60”}
Thanks again.
Redmine Admin wrote:
Hi, yes, you need to use admin API to be able to access this data.
var loginClient = new JSONRpcClient({
'url': 'https://user-api.simplybook.me' + '/login',
'onerror': function (error) {},
});
var token = loginClient.getUserToken(YOUR_COMPANY_LOGIN, YOUR_USER_LOGIN, YOUR_USER_PASSWORD);
this.client = new JSONRpcClient({
'url': 'https://user-api.simplybook.me' + '/admin/',
'headers': {
'X-Company-Login': YOUR_COMPANY_LOGIN,
'X-User-Token': token
},
'onerror': function (error) {}
});
Andy Butland wrote:
Tried that too, but seems to give the same result:
@{Method: POST, RequestUri: ‘https://user-api.enterpriseappointments.com/admin/’, Version: 2.0, Content: System.Net.Http.StringContent, Headers:
{
X-Company-Login: testsubsystem1
X-User-Token: 38e0d25d6cd979959a6c1f806aa8eca47bfec27d38dd7817b861cf60fed48a17
Content-Type: application/json; charset=utf-8
Content-Length: 158
}}
Content:
{“jsonppc”:“2.0”,“method”:“getCompanyParams”,“params”:[“min_time_till_event”,“max_time_till_event”,“date_format”],“id”:“4b0ac9f1-70b4-4b1a-9025-3d02f58ff55d”}
Result:
“{“result”:,“id”:“4b0ac9f1-70b4-4b1a-9025-3d02f58ff55d”}”@
Redmine Admin wrote:
Params must be an array of params
e.g.
params":[["min_time_till_event","max_time_till_event","date_format"]]
Andy Butland wrote:
Ah yes. Got it now, thanks.
Andy Butland wrote:
One more question - is there a list of these company config key values available somewhere please? I can see it mentioned in the documentation but not directly shown. Thanks.
Redmine Admin wrote:
Here is full list
'allow_delay_payment', 'allow_event_breaktime_break', 'allow_event_day_break', 'attach_ical', 'auto_redirect',
'auto_redirect_text', 'blockchain_address', 'blockchain_secret', 'borgun_merchant_id', 'borgun_payment_gateway_id',
'borgun_secret_code', 'changable_prefix_by_client', 'client_batch_cancel_template', 'client_batch_cancel_template_email',
'client_batch_cancel_template_email_subject', 'client_event_cancel_template', 'client_event_cancel_template_email',
'client_event_cancel_template_email_subject', 'client_event_change_template', 'client_event_change_template_email',
'client_event_change_template_email_subject', 'client_event_creation_template', 'client_event_creation_template_email',
'client_event_creation_template_email_subject', 'client_event_group_creation_template',
'client_event_group_creation_template_email', 'client_event_group_creation_template_email_subject',
'client_event_multiple_creation_template', 'client_event_multiple_creation_template_email',
'client_event_multiple_creation_template_email_subject', 'client_group_notification_template',
'client_group_notification_template_email', 'client_group_notification_template_email_subject',
'client_multiple_notification_template', 'client_multiple_notification_template_email',
'client_multiple_notification_template_email_subject', 'client_notification_template', 'client_notification_template_email',
'client_notification_template_email_subject', 'client_notification_time', 'client_recurring_event_creation_template',
'client_recurring_event_creation_template_email', 'client_recurring_event_creation_template_email_subject',
'common_limit_booking', 'company_currency', 'company_ga_tracking_id', 'company_timezone', 'date_format', 'default_phone',
'disconnect_on_timeout', 'dwolla_application_key', 'dwolla_id', 'dwolla_secret_key', 'email_events_list_template',
'email_event_list', 'email_group_events_list_template', 'event_list_style', 'feedback_invite_template_email',
'feedback_invite_template_email_subject', 'feed_back_interval', 'fixed_country_prefix', 'google_conversion_color',
'google_conversion_currency', 'google_conversion_format', 'google_conversion_id', 'google_conversion_label',
'google_conversion_language', 'google_conversion_value', 'hide_sale_tax', 'hide_working_hours_block', 'include_cancel_link',
'kortais_merchant', 'kortais_secret_code', 'kortais_terminal', 'layout_background', 'layout_background_repeat',
'liqpay_merchant_id', 'liqpay_merchant_pass', 'max_group_bookings', 'max_time_till_event', 'min_time_till_event',
'mobile_site_link', 'mobile_site_link_title', 'monday_is_first_day', 'no_show_period', 'on_success_button_link',
'on_success_button_text', 'payment_timeout', 'paypal_account', 'recap_interval', 'recap_send_after_time',
'recap_send_canceled_bookings', 'recap_send_new_bookings', 'recap_send_upcomming_bookings', 'require_fields', 'sale_tax',
'send_cancel_to_client', 'send_cancel_to_client_email', 'send_cancel_to_unit', 'send_cancel_to_unit_email',
'send_contact_widget_email_notification', 'send_contact_widget_sms_notification', 'send_notifications_in_client_timezone',
'send_notify_to_client', 'send_notify_to_client_email', 'send_notify_to_unit', 'send_notify_to_unit_email',
'send_onchange_to_client', 'send_onchange_to_client_email', 'send_onchange_to_unit', 'send_onchange_to_unit_email',
'send_oncreate_to_client', 'send_oncreate_to_client_email', 'send_oncreate_to_unit', 'send_oncreate_to_unit_email',
'send_sms_if_push_enabled', 'show_booking_page_in_client_timezone', 'site_link', 'site_link_title', 'skip_limits_for_admin',
'skip_show_mobile_app_ads', 'skip_show_on_success_button', 'skrill_account', 'skrill_secret', 'sms_events_list_template',
'sms_event_list', 'sms_group_events_list_template', 'timeframe', 'time_format', 'unit_batch_cancel_template',
'unit_batch_cancel_template_email', 'unit_batch_cancel_template_email_subject', 'unit_event_cancel_template',
'unit_event_cancel_template_email', 'unit_event_cancel_template_email_subject', 'unit_event_change_template',
'unit_event_change_template_email', 'unit_event_change_template_email_subject', 'unit_event_creation_template',
'unit_event_creation_template_email', 'unit_event_creation_template_email_subject', 'unit_event_group_creation_template',
'unit_event_group_creation_template_email', 'unit_event_group_creation_template_email_subject',
'unit_group_notification_template', 'unit_group_notification_template_email', 'unit_group_notification_template_email_subject',
'unit_notification_template', 'unit_notification_template_email', 'unit_notification_template_email_subject',
'unit_notification_time', 'unit_recurring_event_creation_template', 'unit_recurring_event_creation_template_email',
'unit_recurring_event_creation_template_email_subject', 'user_confirmation', 'user_license_text', 'user_public_layout',
'user_public_theme', 'user_public_timeline_type', 'use_common_client_db', 'waiting_video', 'zooz_app_id', 'zooz_app_key',
'client_login_allow_registration', 'braintree_merchant_id', 'braintree_public_key', 'braintree_private_key',
'send_email_membership_recurring_notification', 'send_email_membership_recurring_payment_failed', 'send_email_membership_payment_notification',
'send_email_membership_recurring_payment_success', 'send_sms_membership_recurring_notification', 'send_sms_membership_recurring_payment_failed',
'send_sms_membership_payment_notification', 'send_sms_membership_recurring_payment_success',
'membership_recurring_notification_template', 'membership_recurring_notification_template_email', 'membership_recurring_notification_template_email_subject',
'membership_recurring_payment_failed_template', 'membership_recurring_payment_failed_template_email', 'membership_recurring_payment_failed_template_email_subject',
'membership_recurring_payment_success_template', 'membership_recurring_payment_success_template_email', 'membership_recurring_payment_success_template_email_subject',
'membership_payment_notification_template', 'membership_payment_notification_template_email', 'membership_payment_notification_template_email_subject'
Andy Butland wrote:
Thanks again. Please feel free to close this ticket now.