This directory contains a number of python files to demonstrate using the Sitelink 2 APIs.
In order to use our APIs, you need a site. You can make a new one, or use one from the web page.
The file make_site.py
will create one for you. To use it,
settings.json
file and make any changes that seem sensible.python make_site.py
site.json
file will be created that adds settings used by the other python files.This is a bit painful at the moment; we intend to provide a nice web widget to get the settings you need but until then:
extract_site_file.js
extract_site_file.js
and place the output in site.json
.The following files demonstrate our MFK data:
mfk_send_replicates.py
will send replicate packets to your site, at a rate of one packet each three seconds.mfk_live_reader.py
will read replicate packets sent to your site.Setting up two separate processes to run each of these will test that data are flowing correctly.
In addition, mfk.py
provides classes used to manage mfk data. This file is used by the mfk_live_reader
.
The file file_example.py
provides a composite demonstration of the file upload feature of Sitelink 2. It
The individual functions are demonstrated in the following:
file_download.py
file_listing.py
file_upload.py
make_folder.py