curl -X GET https://cloud.logintc.com/api/domains/ab3e96cfdf3c6994ebe9062e0094c07f67872f10/users -H 'Authorization: LoginTC key="YOUR_API_KEY"'
[
{
"id":"1d046436bd58a6c824b8e6b4ee1ba0c34c7c0d1e",
"username":"dmatute",
"name":"Diego",
"email":"dmatute@cyphercor.com",
"domains":["ab3e96cfdf3c6994ebe9062e0094c07f67872f10"]
},
{
"id":"469986591e4c4329a73b0bdf432698c6d96b4030",
"username":"jdoe2",
"name":"Jane Doe",
"email":"jdoe@email.com",
"domains":["ab3e96cfdf3c6994ebe9062e0094c07f67872f10"]
},
{
"id":"b567ba1f3f7815439c3de922890600b88a480e32",
"username":"jsmith2",
"name":"John Smith",
"email":"jsmith@email.com",
"domains":["ab3e96cfdf3c6994ebe9062e0094c07f67872f10"]
},
{
"id":"f2904752f8394dfe1b6485969e5c1677655d1511",
"username":"jsmith21",
"name":"John Smith",
"email":"jsmith@email.com",
"domains":["ab3e96cfdf3c6994ebe9062e0094c07f67872f10"]
}
]
<?php
// Get the library from github.com/logintc/logintc-php
require_once('logintc-php/LoginTC.php');
// Your API Key from cloud.logintc.com/panel/settings
$api_key = 'YOUR_API_KEY';
$logintc = new LoginTC($api_key);
// Domain id
$domain_id = 'ab3e96cfdf3c6994ebe9062e0094c07f67872f10';
// Helper function to get domain users
$users = $logintc->getDomainUsers($domain_id);
echo array_values($users)[0]->getName();
# Get the library from github.com/logintc/logintc-python
import logintc
# Your API Key from cloud.logintc.com/panel/settings
api_key = 'YOUR_API_KEY'
client = logintc.LoginTC(api_key)
# Domain id
domain_id = 'ab3e96cfdf3c6994ebe9062e0094c07f67872f10'
# Helper function to get domain users
users = client.get_domain_users(domain_id)
print users
import java.util.List;
// Get the library from github.com/logintc/logintc-java
import com.cyphercor.logintc.LoginTC;
import com.cyphercor.logintc.LoginTC.LoginTCException;
import com.cyphercor.logintc.resource.User;
public class Example {
// Your API Key from cloud.logintc.com/panel/settings
public static final String API_KEY = "YOUR_API_KEY";
public static void main(String[] args) throws LoginTCException {
LoginTC logintc = new LoginTC(API_KEY);
// Domain id
String domainId = "ab3e96cfdf3c6994ebe9062e0094c07f67872f10";
// Helper function to get domain users
List users = logintc.getDomainUsers(domainId);
System.out.println(users.get(0).getName());
}
}