|
1 |
| -<p align="center"> |
2 |
| - <img src="https://raw.githubusercontent.com/Breinify/brein-api-library-python/master/documentation/img/logo.png" alt="Breinify API Python Library" width="250"> |
3 |
| -</p> |
| 1 | +.. image:: https://raw.githubusercontent.com/Breinify/brein-api-library-python/master/documentation/img/logo.png |
| 2 | +:width: 250px |
| 3 | + :align: center |
| 4 | + :alt: Breinify API Java Library |
| 5 | + |
| 6 | +.. class:: center |
4 | 7 |
|
5 |
| -<p align="center"> |
6 | 8 | Breinify's DigitalDNA API puts dynamic behavior-based, people-driven data right at your fingertips.
|
7 |
| -</p> |
8 | 9 |
|
9 |
| -### Step By Step Introduction |
10 | 10 |
|
11 |
| -#### What is Breinify's DigitialDNA |
| 11 | +Step By Step Introductions |
| 12 | +========================== |
| 13 | + |
| 14 | +What is Breinify's DigitialDNA |
| 15 | +------------------------------ |
12 | 16 |
|
13 | 17 | Breinify's DigitalDNA API puts dynamic behavior-based, people-driven data right at your fingertips. We believe that in many situations, a critical component of a great user experience is personalization. With all the data available on the web it should be easy to provide a unique experience to every visitor, and yet, sometimes you may find yourself wondering why it is so difficult.
|
14 | 18 |
|
15 | 19 | Thanks to **Breinify's DigitalDNA** you are now able to adapt your online presence to your visitors needs and **provide a unique experience**. Let's walk step-by-step through a simple example.
|
16 | 20 |
|
17 |
| -### Quick start |
| 21 | +Quick start |
| 22 | +=========== |
18 | 23 |
|
19 |
| -#### Step 1: Download the Library |
| 24 | +Step 1: Download the Library |
| 25 | +---------------------------- |
| 26 | +Download the library from Pypi and install it with |
20 | 27 |
|
21 |
| -Download the wheel from <<more details to come>> and install it with ... |
| 28 | +.. code:: python |
22 | 29 |
|
| 30 | + python3 setup.py install |
23 | 31 |
|
24 |
| -#### Step 2: Integrate the library |
25 | 32 |
|
26 |
| -Integrate the Library into your Python 3 project. |
| 33 | +Step 2: Integrate the library |
| 34 | +----------------------------- |
| 35 | +Integrate the Library into your Python 3 project. |
27 | 36 |
|
28 | 37 |
|
29 |
| -#### Step 3: Configure the library |
| 38 | +Step 3: Configure the library |
| 39 | +----------------------------- |
30 | 40 |
|
31 |
| -In order to use the library you need a valid API-key, which you can get for free at [https://www.breinify.com](https://www.breinify.com). In this example, we assume you have the following api-key: |
| 41 | +In order to use the library you need a valid API-key, which you can get for free at https://www.breinify.com. In this example, we assume you have the following api-key: |
32 | 42 |
|
33 | 43 | **772A-47D7-93A3-4EA9-9D73-85B9-479B-16C6**
|
34 | 44 |
|
35 |
| -```python |
36 |
| -##this is a valid API key |
37 |
| -apiKey = "772A-47D7-93A3-4EA9-9D73-85B9-479B-16C6" |
| 45 | +.. code:: python |
38 | 46 |
|
39 |
| -breinify.connect(apiKey) |
40 |
| -## Will always return True |
| 47 | + ##this is a valid API key |
| 48 | + apiKey = "772A-47D7-93A3-4EA9-9D73-85B9-479B-16C6" |
41 | 49 |
|
42 |
| -``` |
| 50 | + breinify.connect(apiKey) |
43 | 51 |
|
44 | 52 | The Breinify class is now configured with a valid configuration object.
|
45 | 53 |
|
46 | 54 |
|
47 |
| -#### Step 4: Start using the library |
| 55 | +Step 4: Start using the library |
| 56 | +------------------------------- |
48 | 57 |
|
49 |
| -##### Placing activity triggers |
| 58 | +Placing activity triggers |
| 59 | +^^^^^^^^^^^^^^^^^^^^^^^^^ |
50 | 60 |
|
51 | 61 | The engine powering the DigitalDNA API provides two endpoints. The first endpoint is used to inform the engine about the activities performed by visitors of your site. The activities are used to understand the user's current interest and infer the intent. It becomes more and more accurate across different users and verticals as more activities are collected. It should be noted, that any personal information is not stored within the engine, thus each individual's privacy is well protected. The engine understands several different activities performed by a user, e.g., landing, login, search, item selection, or logout.
|
52 | 62 |
|
53 | 63 | The engine is informed of an activity by executing *breinify.activity(...)*.
|
54 | 64 |
|
55 |
| -```python |
56 |
| -# create a user you are interested in with their email (mandatory field) and any additional identification you want to pass |
57 |
| -user = breinify.user( "[email protected]", lastname = "anywhere") ; |
| 65 | +.. code:: python |
58 | 66 |
|
59 |
| -breinify.activity(user,"search","home","your activity description") |
| 67 | + #create a user you are interested in with their email (mandatory field) and any additional identification you want to pass |
| 68 | + user = breinify.user("[email protected]",lastname = "anywhere"); |
60 | 69 |
|
61 |
| -``` |
| 70 | + breinify.activity(user,"search","home","your activity description") |
62 | 71 |
|
63 | 72 | That's it! The call will be run asynchronously in the background.
|
64 | 73 |
|
65 | 74 |
|
66 |
| -##### Placing look-up triggers |
| 75 | +Placing look-up triggers |
| 76 | +^^^^^^^^^^^^^^^^^^^^^^^^ |
| 77 | + |
| 78 | +Look-ups are used to retrieve dedicated information for a given user. |
67 | 79 |
|
68 |
| -Look-ups are used to retrieve dedicated information for a given user. |
| 80 | +.. code:: python |
69 | 81 |
|
70 |
| -```python |
71 |
| -# define an array of subjects of interest |
72 |
| -dimensions = ["firstname", |
| 82 | + # define an array of subjects of interest |
| 83 | + dimensions = ["firstname", |
73 | 84 | "gender",
|
74 | 85 | "age",
|
75 | 86 | "agegroup",
|
76 | 87 | "digitalfootprint",
|
77 | 88 | "images"]
|
78 | 89 |
|
79 |
| -result = breinify.lookup(user, dimensions); |
| 90 | + result = breinify.lookup(user, dimensions); |
80 | 91 |
|
81 |
| -``` |
82 | 92 |
|
83 |
| -### Further links |
| 93 | +Further links |
| 94 | +------------- |
| 95 | + |
84 | 96 | To understand all the capabilities of Breinify's DigitalDNA API, take a look at:
|
85 | 97 |
|
86 |
| -* [Additional code snippets](documentation/more-snippets.md), or |
| 98 | + |
87 | 99 | * [Breinify's Website](https://www.breinify.com).
|
0 commit comments