You can get information about organizations in the account by sending the GET request to the following URL: /organization.
Permission to run the request: Account Owner, Administrator, Organization Administrator, Publisher.
Parameter | Description |
---|
X-Auth-Account-Url (required) | Base URL of the account, e.g. http://myaccount.ispringlearn.com |
X-Auth-Email (required) | Administrator/Publisher e-mail address. |
X-Auth-Password (required) | Administrator/Publisher password. |
If the request is sent by a Publisher or Organization Admin, the response will include info about their own organization.
After the request has been completed, the system returns the response with Code 200.
Possible Response Codes
Code | Text | Description |
---|
200 | OK | The request has been successfully processed. |
Sample Request
GET /organization HTTP/1.1
Host: api.ispringonline.com
X-Auth-Account-Url: http://myaccount.ispringlearn.com
X-Auth-Email: email@email.com
X-Auth-Password: password
XML
Sample Response
<?xml version="1.0" encoding="UTF-8"?>
<organizations>
<organization>
<organizationId>1</organizationId>
<description>Test Organization</description>
<name>test</name>
</organization>
<organization>
...
</organization>
</organizations>
XML