Get team.
Parameter | Type | Default | Description |
---|---|---|---|
type |
string | Option to filter results by account type. Available values are 'admin', 'manager' or 'user'. | |
rtn |
string | json | The format of the response "json", "text" or "html" |
Parameter | Type | Description |
---|---|---|
memberID |
string | A member id hash. |
firstname |
string | Member first name. |
lastname |
string | Member last name. |
email |
string | Member email address. |
accountType |
string | Member account type. |
groupID |
string | Member groupID if they are a part of a group. |
groupName |
string | Member group name if they are a part of a group. |
import java.util.HashMap;
import java.util.concurrent.TimeUnit;
import org.json.simple.JSONObject;
// create BtagAPI class object using your AuthID and Access Key
BtagAPI btag = new BtagAPI("AuthID", "Access Key");
HashMap<String, Object> params = new HashMap<String, Object>();
JSONObject result = new JSONObject();
do {
result = btag.request("teams", params);
System.out.println(result);
TimeUnit.SECONDS.sleep(1);
} while (!result.isEmpty());
var BtagAPI = require('bananatag-api.js');
// create BtagAPI object using your AuthID and Access Key
var btag = new BTagAPI('AuthID', 'Access Key');
// make request to get data
btag.request('teams', {}, function (err, results) {
console.log(results);
}
use Bananatag\Api;
// Create Api class instance
$btag = new Api('AuthID', 'Access Key');
// make request to get data
$results = $btag->request('teams', []);
// print data
print_r($results);
# import BTagAPI class
from btapi.btapi import BTagAPI
# create BTagAPI object using your AuthID and Access Key
btag = BTagAPI('AuthID', 'Access Key')
# make request to get data
data = btag.request('teams')
print data
Get team member with the given id.
Parameter | Type | Default | Description |
---|---|---|---|
rtn |
string | json | The format of the response "json", "text" or "html" |
Parameter | Type | Description |
---|---|---|
memberID |
string | A member id hash. |
firstname |
string | Member first name. |
lastname |
string | Member last name. |
email |
string | Member email address. |
accountType |
string | Member account type. |
groupID |
string | Member groupID if they are a part of a group. |
groupName |
string | Member group name if they are a part of a group. |
import java.util.HashMap;
import java.util.concurrent.TimeUnit;
import org.json.simple.JSONObject;
// create BtagAPI class object using your AuthID and Access Key
BtagAPI btag = new BtagAPI("AuthID", "Access Key");
HashMap<String, Object> params = new HashMap<String, Object>();
JSONObject result = new JSONObject();
do {
result = btag.request("teams/member/k4IGo9", params);
System.out.println(result);
TimeUnit.SECONDS.sleep(1);
} while (!result.isEmpty());
var BtagAPI = require('bananatag-api.js');
// create BtagAPI object using your AuthID and Access Key
var btag = new BTagAPI('AuthID', 'Access Key');
// make request to get data
btag.request('teams/member/k4IGo9', {}, function (err, results) {
console.log(results);
}
use Bananatag\Api;
// Create Api class instance
$btag = new Api('AuthID', 'Access Key');
// make request to get data
$results = $btag->request('teams/member/k4IGo9', []);
// print data
print_r($results);
# import BTagAPI class
from btapi.btapi import BTagAPI
# create BTagAPI object using your AuthID and Access Key
btag = BTagAPI('AuthID', 'Access Key')
# make request to get data
data = btag.request('teams/member/k4IGo9')
print data
Get team members in group with given id or group name.
Parameter | Type | Default | Description |
---|---|---|---|
type |
string | Option to filter results by account type. Available values are 'admin', 'manager' or 'user'. | |
rtn |
string | json | The format of the response "json", "text" or "html" |
Parameter | Type | Description |
---|---|---|
memberID |
string | A member id hash. |
firstname |
string | Member first name. |
lastname |
string | Member last name. |
email |
string | Member email address. |
accountType |
string | Member account type. |
groupID |
string | Member groupID if they are a part of a group. |
groupName |
string | Member group name if they are a part of a group. |
import java.util.HashMap;
import java.util.concurrent.TimeUnit;
import org.json.simple.JSONObject;
// create BtagAPI class object using your AuthID and Access Key
BtagAPI btag = new BtagAPI("AuthID", "Access Key");
HashMap<String, Object> params = new HashMap<String, Object>();
JSONObject result = new JSONObject();
do {
result = btag.request("teams/group/hY3Tr5", params);
System.out.println(result);
TimeUnit.SECONDS.sleep(1);
} while (!result.isEmpty());
var BtagAPI = require('bananatag-api.js');
// create BtagAPI object using your AuthID and Access Key
var btag = new BTagAPI('AuthID', 'Access Key');
// make request to get data
btag.request('teams/group/hY3Tr5', {}, function (err, results) {
console.log(results);
}
use Bananatag\Api;
// Create Api class instance
$btag = new Api('AuthID', 'Access Key');
// make request to get data
$results = $btag->request('teams/group/hY3Tr5', []);
// print data
print_r($results);
# import BTagAPI class
from btapi.btapi import BTagAPI
# create BTagAPI object using your AuthID and Access Key
btag = BTagAPI('AuthID', 'Access Key')
# make request to get data
data = btag.request('teams/group/hY3Tr5')
print data
Get Team Stats.
Parameter | Type | Default | Description |
---|---|---|---|
start |
string | Return tags sent to contact after this date. | |
end |
string | Return tags sent to contact before this date. | |
aggregateData |
boolean | false | Combine all stats records into one. |
type |
string | Option to filter results by account type. Available values are 'admin', 'manager' or 'user'. | |
rtn |
string | json | The format of the response "json", "text" or "html" |
Parameter | Type | Description |
---|---|---|
totalSent |
integer | The total number of tracked tags. |
totalOpens |
integer | The total number of tag opens. |
totalClicks |
integer | The total number of tag clicks. |
uniqueOpens |
integer | The total number of unique tag opens. |
uniqueClicks |
integer | The total number unique tag clicks. |
dateLastSent |
timestamp | The date of the last tracked tag. |
import java.util.HashMap;
import java.util.concurrent.TimeUnit;
import org.json.simple.JSONObject;
// create BtagAPI class object using your AuthID and Access Key
BtagAPI btag = new BtagAPI("AuthID", "Access Key");
HashMap<String, Object> params = new HashMap<String, Object>();
JSONObject result = new JSONObject();
// build parameters to map
params.put("aggregateData", true);
do {
result = btag.request("teams/stats", params);
System.out.println(result);
TimeUnit.SECONDS.sleep(1);
} while (!result.isEmpty());
var BtagAPI = require('bananatag-api.js');
// create BtagAPI object using your AuthID and Access Key
var btag = new BTagAPI('AuthID', 'Access Key');
// make request to get data
btag.request('teams/stats', {aggregateData : true}, function (err, results) {
console.log(results);
}
use Bananatag\Api;
// Create Api class instance
$btag = new Api('AuthID', 'Access Key');
// make request to get data
$results = $btag->request('teams/stats', [aggregateData => true]);
// print data
print_r($results);
# import BTagAPI class
from btapi.btapi import BTagAPI
# create BTagAPI object using your AuthID and Access Key
btag = BTagAPI('AuthID', 'Access Key')
# make request to get data
data = btag.request('teams/stats', {aggregateData : True})
print data
Get Team Group Stats for group with the given id or group name.
Parameter | Type | Default | Description |
---|---|---|---|
start |
string | Return tags sent to contact after this date. | |
end |
string | Return tags sent to contact before this date. | |
aggregateData |
boolean | false | Combine all stats records into one. |
type |
string | Option to filter results by account type. Available values are 'admin', 'manager' or 'user'. | |
rtn |
string | json | The format of the response "json", "text" or "html" |
Parameter | Type | Description |
---|---|---|
totalSent |
integer | The total number of tracked tags. |
totalOpens |
integer | The total number of tag opens. |
totalClicks |
integer | The total number of tag clicks. |
uniqueOpens |
integer | The total number of unique tag opens. |
uniqueClicks |
integer | The total number unique tag clicks. |
dateLastSent |
timestamp | The date of the last tracked tag. |
import java.util.HashMap;
import java.util.concurrent.TimeUnit;
import org.json.simple.JSONObject;
// create BtagAPI class object using your AuthID and Access Key
BtagAPI btag = new BtagAPI("AuthID", "Access Key");
HashMap<String, Object> params = new HashMap<String, Object>();
JSONObject result = new JSONObject();
// build parameters to map
params.put("aggregateData", true);
do {
result = btag.request("teams/stats/group/hB71Fr", params);
System.out.println(result);
TimeUnit.SECONDS.sleep(1);
} while (!result.isEmpty());
var BtagAPI = require('bananatag-api.js');
// create BtagAPI object using your AuthID and Access Key
var btag = new BTagAPI('AuthID', 'Access Key');
// make request to get data
btag.request('teams/stats/group/hB71Fr', {aggregateData : true}, function (err, results) {
console.log(results);
}
use Bananatag\Api;
// Create Api class instance
$btag = new Api('AuthID', 'Access Key');
// make request to get data
$results = $btag->request('teams/stats/group/hB71Fr', [aggregateData => true]);
// print data
print_r($results);
# import BTagAPI class
from btapi.btapi import BTagAPI
# create BTagAPI object using your AuthID and Access Key
btag = BTagAPI('AuthID', 'Access Key')
# make request to get data
data = btag.request('teams/stats/group/hB71Fr', {aggregateData : True})
print data
Get team member stats for member with given id.
Parameter | Type | Default | Description |
---|---|---|---|
start |
string | Return tags sent to contact after this date. | |
end |
string | Return tags sent to contact before this date. | |
aggregateData |
boolean | false | Combine all stats records into one. |
rtn |
string | json | The format of the response "json", "text" or "html" |
Parameter | Type | Description |
---|---|---|
totalSent |
integer | The total number of tracked tags. |
totalOpens |
integer | The total number of tag opens. |
totalClicks |
integer | The total number of tag clicks. |
uniqueOpens |
integer | The total number of unique tag opens. |
uniqueClicks |
integer | The total number unique tag clicks. |
dateLastSent |
timestamp | The date of the last tracked tag. |
import java.util.HashMap;
import java.util.concurrent.TimeUnit;
import org.json.simple.JSONObject;
// create BtagAPI class object using your AuthID and Access Key
BtagAPI btag = new BtagAPI("AuthID", "Access Key");
HashMap<String, Object> params = new HashMap<String, Object>();
JSONObject result = new JSONObject();
// build parameters to map
params.put("aggregateData", true);
do {
result = btag.request("teams/stats/member/T3Fdr4", params);
System.out.println(result);
TimeUnit.SECONDS.sleep(1);
} while (!result.isEmpty());
var BtagAPI = require('bananatag-api.js');
// create BtagAPI object using your AuthID and Access Key
var btag = new BTagAPI('AuthID', 'Access Key');
// make request to get data
btag.request('teams/stats/member/T3Fdr4', {aggregateData : true}, function (err, results) {
console.log(results);
}
use Bananatag\Api;
// Create Api class instance
$btag = new Api('AuthID', 'Access Key');
// make request to get data
$results = $btag->request('teams/stats/member/T3Fdr4', [aggregateData => true]);
// print data
print_r($results);
# import BTagAPI class
from btapi.btapi import BTagAPI
# create BTagAPI object using your AuthID and Access Key
btag = BTagAPI('AuthID', 'Access Key')
# make request to get data
data = btag.request('teams/stats/member/T3Fdr4', {aggregateData : True})
print data