Folder Methods

Use Cases

Folders

Returns a list of folders.

GET https://api.bananatag.com/folders
Query Parameters
Parameter Type Default Description
rtn string json The format of the response "json", "text" or "html"
Response Parameters
Parameter Type Description
folderID string A folder id hash
folder string The folder name.
Examples
                                
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("folders", 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 folders
btag.request('folders', {rtn : 'json'}, 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("folders", ['rtn'=>'json']);

// 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("folders", {'rtn' : 'json'})

print data