Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
root
committed
Apr 10, 2018
0 parents
commit 6382d29
Showing
63 changed files
with
18,776 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line. | ||
SPHINXOPTS = | ||
SPHINXBUILD = sphinx-build | ||
SPHINXPROJ = JibiaDocs | ||
SOURCEDIR = source | ||
BUILDDIR = build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 630383d5489e503b27d0434223d02f8d | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.. Jibia Docs documentation master file, created by | ||
sphinx-quickstart on Tue Apr 10 20:35:52 2018. | ||
You can adapt this file completely to your liking, but it should at least | ||
contain the root `toctree` directive. | ||
Contact | ||
======================================= | ||
If you have any questions you can send them to info@jibia.nl or join our Slack channel. | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
.. Jibia Docs documentation master file, created by | ||
sphinx-quickstart on Tue Apr 10 20:35:52 2018. | ||
You can adapt this file completely to your liking, but it should at least | ||
contain the root `toctree` directive. | ||
Examples | ||
==================================== | ||
|
||
Javascript example | ||
===================== | ||
Here's an example in javascript of how to implement our API into your service: | ||
:: | ||
|
||
window.onload = addevent; | ||
function addevent () { | ||
window.onmessage = function(event){ | ||
recom(event.data); | ||
}; | ||
} | ||
recom = (ident) => { | ||
var req = new XMLHttpRequest(); | ||
req.open('POST', decodeURIComponent('http://146.185.174.192:80/api/recommend'), true); | ||
var params = {"identifier": ident, "n" : NUMBER_OF_ITEMS, "product_id" : ID_OF_CURRENT_PRODUCT, "language": LANGUAGE}; | ||
req.setRequestHeader('Content-Type', 'application/json; charset=UTF-8'); | ||
req.send(JSON.stringify(params)); | ||
req.onreadystatechange = function () { | ||
var ans = JSON.parse(req.responseText)['result'] | ||
document.getElementById('test').innerHTML = ans[0]['title']; | ||
document.getElementById('img').src = ans[0]['img']; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.. Jibia Docs documentation master file, created by | ||
sphinx-quickstart on Tue Apr 10 20:35:52 2018. | ||
You can adapt this file completely to your liking, but it should at least | ||
contain the root `toctree` directive. | ||
Welcome to Jibia's documentation! | ||
====================================== | ||
This documentation's goal is to provide you with the necessary resources to implement | ||
Jibia's technology into your website. If you haven't set up your account yet, you | ||
can do that over at https://jibia.nl/business. | ||
|
||
Contact | ||
======================================= | ||
If you have any questions you can send them to info@jibia.nl or join our Slack channel. | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
examples | ||
contact |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.