1.0.67 • Published 3 months ago

bookingflix_calendar v1.0.67

Weekly downloads
85
License
-
Repository
-
Last release
3 months ago

Dokumentation Bookingflix Calendar

Um den Bookingflix-Buchungskalender auf der eigenen Website zu integrieren, gibt es mehrere Varianten.

Vorbereitung

Data_String erzeugen

Benötigt wird immer ein DATA_STRING, den man via bookingflix.com/sign-in.html erhällt. Dieser setzt sich wie folgt zusammen:

DATA_STRING via Javascript-Code erzeugen:

Buffer.from(
  JSON.stringify({
    load: {
      user: USER_ID,
      ID: CALENDAR_ID,
      lang: "de",
    },
  }).toString("base64")
);

Alternative via Javascript-Code:

btoa(
  JSON.stringify({
    load: {
      user: USER_ID,
      ID: CALENDAR_ID,
      lang: "de",
    },
  })
);

DATA_STRING via PHP-Code erzeugen:

base64_encode(json_encode(array("load" => array("user" => USER_ID, "ID" => CALENDAR_ID, "lang" => "de"))))

1. Integration in HTML

<html>
  <head>
    <meta charset="utf-8" />
    <title>Flix-Calendar Integration</title>
    <script src="https://unpkg.com/vue"></script>
    <script src="https://cal.bookingflix.com/vendor/save/de.js"></script>
    <script src="https://cal.bookingflix.com/src/flix-calendar.min.js"></script>
  </head>

  <body>
    <flix-calendar
      data="DATA_STRING"
      callback="calendarSettings"
    ></flix-calendar>
  </body>
</html>

2. Integration in Nuxt

Installation

npm i bookingflix_calendar --save

nuxt.config.js

head: {
  script: [
    {
      src: 'https://cal.bookingflix.com/vendor/save/de.js',
      mode: 'client'
    }
  ]
},
plugins: [
  { src: '~/plugins/calendar.js', ssr: false, client: true }
]

~/plugins/calendar.js

import Vue from "vue";
import calendar from "bookingflix_calendar";

Vue.use(calendar);

Component

<template>
  <div>
    <flix-calendar data="DATA_STRING" callback="calendarSettings" />
  </div>
</template>
<script>
  export default {...}
</script>

3. Integration in Wordpress

Installation via Wordpress-Plugin

4. Integration via Einbettungs-Code

<script>
  (function (a, b, c, d, e, f, g) {
    f = b.createElement(c);
    g = b.currentScript;
    f.async = 1;
    f.src = d;
    g.parentNode.replaceChild(f, g, b);
    f.onload = function () {
      new get_cal(30).build(f, e);
    };
  })(
    window,
    document,
    "script",
    "https://cal.bookingflix.com/vendor/embed.js",
    "DATA_STRING"
  );
</script>
1.0.66

3 months ago

1.0.65

3 months ago

1.0.67

3 months ago

1.0.62

4 months ago

1.0.63

4 months ago

1.0.61

4 months ago

1.0.60

5 months ago

1.0.59

5 months ago

1.0.54

10 months ago

1.0.58

8 months ago

1.0.57

9 months ago

1.0.56

9 months ago

1.0.53

11 months ago

1.0.51

11 months ago

1.0.52

11 months ago

1.0.50

11 months ago

1.0.48

1 year ago

1.0.49

1 year ago

1.0.47

2 years ago

1.0.46

2 years ago

1.0.44

2 years ago

1.0.45

2 years ago

1.0.43

3 years ago

1.0.42

3 years ago

1.0.41

3 years ago

1.0.39

3 years ago

1.0.40

3 years ago

1.0.38

3 years ago

1.0.37

3 years ago

1.0.36

3 years ago

1.0.35

3 years ago

1.0.34

3 years ago

1.0.33

3 years ago

1.0.32

3 years ago

1.0.31

3 years ago

1.0.30

3 years ago

1.0.29

3 years ago

1.0.28

3 years ago

1.0.27

3 years ago

1.0.26

3 years ago

1.0.25

3 years ago

1.0.24

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.20

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.10

3 years ago

1.0.2

3 years ago

1.0.9

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago