Organization

The Organization is the firm, group, or institution to which the services you wish to protect belong. It is the entity with which your domains and users will be associated.

Resources

GET/organization

Get information about your organization: name.

Example

$ curl -X GET https://cloud.logintc.com/api/organization  -H 'Authorization: LoginTC key="YOUR_API_KEY"'
{
    "name":"Acme Corporation"
}
<?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);


// Helper function to get organization
$organization = $logintc->getOrganization();

echo $organization->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)

# Helper function to get organization
organization = client.get_organization()

print organization['name']
// 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.Organization;

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);

        // Helper function to get organization
        Organization organization = logintc.getOrganization();

        System.out.println(organization.getName());
    }
}