Guides
Use these samples to quickly start making calls to the Abacus API. For additional assistance contact support.

using (var client = new HttpClient())
{
    client.DefaultRequestHeaders.Clear();
    client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
    client.DefaultRequestHeaders.Add("X-Fern-Token", API_KEY_VALUE);
    client.DefaultRequestHeaders.Add("User-Agent", "NameOfYourApplication");

    var response = await client.GetAsync("https://api.abacushub.io/titles/");
    var result = JsonConvert.DeserializeObject<Title[]>(await
        response.Content.ReadAsStringAsync().ConfigureAwait(false));

    foreach (var titles in result)
    {
        Console.WriteLine(titles.Name);
        Console.WriteLine(titles.Value);
    }
}

URL url = new URL("https://api.abacushub.io/titles/");
HttpURLConnection connection = (HttpURLConnection) url.openConnection();

connection.setRequestMethod("GET");
connection.setRequestProperty("X-Fern-Token", API_KEY_VALUE);
connection.setRequestProperty("User-Agent", "NameOfYourApplication");

String line;
BufferedReader reader = new BufferedRead(new InputStreamReader(connection.getInputStream()));
StringBuffer response = new StringBuffer();

while ((line = reader.readLine()) != null) {
    response.append(line);
}

input.close();

JSONArray entities = new JSONArray(response.toString());

entities.forEach(item -> {
    System.out.println(item.getString("Name"));
    System.out.println(item.getString("Value"));
});

var xhr = new XMLHttpRequest();

xhr.onreadystatechange = function() {
    if (this.readyState == 4 && this.status == 200) {
        var entities = JSON.parse(xhr.responseText);
        for (var i = 0; i < entities.length; i++) {
            console.log(entities[i].Name);
            console.log(entities[i].Value);
        }
    }
};

xhr.setRequestHeader("X-Fern-Token", API_KEY_VALUE);
xhr.setRequestHeader("User-Agent", "NameOfYourApplication");
xhr.open("GET", "https://api.abacushub.io/titles/", true);

xhr.send();