Skip to content

Commit f98d7a8

Browse files
committed
further examples
1 parent 3c21760 commit f98d7a8

File tree

5 files changed

+24
-41
lines changed

5 files changed

+24
-41
lines changed

documentation/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ The utility library provides general functionality, which makes it easy to retri
175175

176176
**Parameters**:
177177

178-
{string} ****: The string to be trimmed
178+
{string} **str**: The string to be trimmed
179179

180180
{boolean|null}: **inclSingleQuotes**: true, if only *"* should be removed, otherwise *'*
181181

Lines changed: 4 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,6 @@
1-
<blockquote class="lang-specific javascript--browser">
2-
<p>The JavaScript library offers several overloaded version
3-
of the <code class="prettyprint">temporalData</code> method.</p>
4-
</blockquote>
5-
61
>
72
```javascript--browser
8-
Breinify.activity(function(data) {
9-
console.log(data);
10-
});
11-
```
12-
13-
'Object,String': function (user, type) {
14-
Breinify.activityUser(user, type, null, null, null, false, function (data) {
15-
_privates.ajax(url, data);
16-
});
17-
},
18-
'Object,String,Object': function (user, type, tags) {
19-
Breinify.activityUser(user, type, null, null, tags, false, function (data) {
20-
_privates.ajax(url, data);
21-
});
22-
},
23-
'Object,String,String,Object': function (user, type, description, tags) {
24-
Breinify.activityUser(user, type, null, description, tags, false, function (data) {
25-
_privates.ajax(url, data);
26-
});
27-
},
28-
'Object,String,String,String,Object': function (user, type, category, description, tags) {
29-
Breinify.activityUser(user, type, category, description, tags, false, function (data) {
30-
_privates.ajax(url, data);
31-
});
32-
},
33-
'Object,String,String,String,Object,Function': function (user, type, category, description, tags, callback) {
34-
Breinify.activityUser(user, type, category, description, tags, false, function (data) {
35-
_privates.ajax(url, data, callback, callback);
36-
});
37-
},
38-
'Object,String,String,String,Object,Boolean,Function': function (user, type, category, description, tags, sign, callback) {
39-
Breinify.activityUser(user, type, category, description, tags, sign, function (data) {
40-
_privates.ajax(url, data, callback, callback);
41-
});
42-
}
3+
var sId = Breinify.UTL.cookie.get('JSESSIONID');
4+
var email = 'max@sample.com'; // typically read from an input field
5+
Breinify.activity({ 'sessionId': sId, 'email': email }, 'login');
6+
```

documentation/snippets/language-pageview-activity.md

Whitespace-only changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
>
2+
```javascript--browser
3+
var sId = Breinify.UTL.cookie.get('JSESSIONID');
4+
Breinify.activity({ 'sessionId': sId }, 'pageVisit');
5+
```
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<blockquote class="lang-specific javascript--browser">
2+
<p>The JavaScript library offers several overloaded version
3+
of the <code class="prettyprint">temporalData</code> method.</p>
4+
</blockquote>
5+
6+
>
7+
```javascript--browser
8+
var sId = Breinify.UTL.cookie.get('JSESSIONID');
9+
var tags = {
10+
'productIds': [ '125689', '982361', '157029' ],
11+
'productPrices': [ 134.23, 15.13, 12.99 ]
12+
};
13+
Breinify.activity({ 'sessionId': sId }, 'checkOut', tags);
14+
```

0 commit comments

Comments
 (0)