User Methods

Use Cases

Get User

Returns your basic information.

GET https://api.bananatag.com/user
Query Parameters
Parameter Default Description
rtn json The format of the response "json", "text" or "html"
Response Parameters
Parameter Type Description
userID string A user id hash
firstname string The user's first name.
lastname string The user's last name.
email string The user's email address.
street string The user's address street.
state string The user's state country.
country string The user's address country.
accountType string The users account type.
dailyLimit integer The users daily tag limit.
Examples
                                
import java.util.HashMap;
import java.util.concurrent.TimeUnit;
import org.json.simple.JSONObject;

BtagAPI btag = new BtagAPI("AuthID", "Access Key");
HashMap<String, Object> params = new HashMap<String, Object>();
JSONObject result = new JSONObject();

do {
    result = btag.request("users", 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 user information
btag.request('users', {rtn : 'json'}, function (user) {
    console.log(user);
}
                                
                            
                                
use Bananatag\Api;

// Create Api class instance
$btag = new Api('AuthID', 'Access Key');

// make request to get user data
$results = $btag->request("users", ['rtn'=>'json']);

// print user 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 user data
data = btag.request("users", {'rtn' : 'json'})

print data