|
| 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 | +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 | + } |
0 commit comments