This file contains hidden or 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
curl -v -d "[email protected]&sender_name=Robert Plant&content=Hello World from Appbox&app_id=f6c93021a09dfbff7c8bd&secret=b1c2048a7592e05e1c9b6ac31b01590b85657a5c" http://www.appboxjs.com/api/v1/appbox/admin/new_message/ |
This file contains hidden or 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
// when the user successfully establishes a session (i.e. logs in) | |
totango.identify("account-id","username"); | |
// When you want to track an event | |
totango.track("activity","module"); |
This file contains hidden or 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
<h2>Send Message Form<small>Use the form below to send message</small></h2> | |
<!-- Put the message_editor just below --> | |
<form id="appbox_form" action='javascript:true;' method='post' class="well"> | |
<fieldset> | |
<label>Receiver Name: </label><input type='text' name='receiver_name'> | |
<label>Receiver ID:</label><input type='text' name='receiver_id' value="[email protected]"'></input> | |
<label>Sender Name:</label><input type='text' name='sender_name'></input> | |
<label>Sender ID:</label><input type='text' name='sender_id'></input> | |
<label>Subject:</label><input type='text' name='subject'></input> | |
<label>Content:</label><textarea name='content'></textarea> |
This file contains hidden or 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
<script> | |
var appbox_options = { | |
user_id : "[email protected]", //todo: replace with user email/id | |
app_id : 123456, //todo: replace with app_id | |
}; | |
(function() { | |
var ab = document.createElement('script'); ab.type = 'text/javascript'; ab.async = true; | |
ab.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'www.appboxjs.com/appbox.js'; | |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ab, s); | |
})(); |
This file contains hidden or 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
<!-- Totango http call example --> | |
http://sdr.totango.com/pixel.gif/?sdr_s=SP-xxxx-xx&sdr_o=Acme&sdr_o.Source%Campaign=Value |
This file contains hidden or 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
totango.identify( | |
{'id':'acme1234', | |
'Success Manager': 'Value'},"user"); |
This file contains hidden or 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
// HTTP call: | |
http://sdr.totango.com/pixel.gif/?sdr_s=SP-xxxx-xx&sdr_o=Acme&sdr_o.Sales%Manager=Value |
This file contains hidden or 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
// identifying an account and setting attributes for it | |
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
// totango.identify(account, user); | |
// params: | |
// - account: the account the user belongs to. possible values: | |
// - string: value is the account id | |
// - object: | |
// { 'o': 'account-id', | |
// 'attribute-name' : 'attribute-value', } | |
// - username: Name of the user of this session |
This file contains hidden or 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
totango.identify({ | |
'id':'account-id', | |
'name': 'account display name' | |
}, | |
'username'); |
This file contains hidden or 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
// Adding organization attributes to the identify method | |
totango.identify( | |
{o:'org-unique-id', | |
ofid:'id-on-salesforce', | |
odn: 'org-human-friendly-name'}, | |
'USERNAME'); | |
// Adding organization attributes to the track method | |
totango.track( | |
'activity', |
NewerOlder