GET core/v1/application
Get detailed information on an application.
Resource URL
https://{MEDIACONTROLCENTRE_HOST}[:PORT]/core/v1/application/
Resource Information
Response formats | XML (default) or JSON |
Requires authentication? | Yes (application context only) |
Required scope | Not applicable |
Response
Returns the application details in XML format on success (OR JSON if your standard HTTP Accept header specified application/json). Returns standard error response on failure.
Example Request - XML
curl -i -H "X-Imagen-API-Key: {APPLICATION API KEY}" \
-H "X-Imagen-API-Signature: {APPLICATION SIGNATURE}" \
-X GET https://{MEDIACONTROLCENTRE_HOST}[:PORT]/core/v1/application
Example Result - XML
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Application>
<Name>testing app</Name>
<Created>2015-06-08T16:12:45Z</Created>
<Enabled>1</Enabled>
<RedirectURI>https://example.com/callback/myapp/callback/</RedirectURI>
<Contact>example@example.com</Contact>
<Website/>
<Description/>
<Logo/>
<SecretAccessKey>BDbCwNCGI4wKcBuB2mTNCjjmYQB2KDroVYb4yaNN</SecretAccessKey>
<DeveloperEmail>developer@example.com</DeveloperEmail>
<ApplicationType>web</ApplicationType>
<DatabaseID>1</DatabaseID>
<Scopes>
<Scope>
<Name>readUsersData</Name>
<Description>View records, media and collections</Description>
</Scope>
<Scope>
<Name>modifyUsersData</Name>
<Description>View and modify records, media and collections</Description>
</Scope>
</Scopes>
</cis:ifexists>
</Application>
</Response>
Example Request - JSON
curl -i -H "X-Imagen-API-Key: {APPLICATION API KEY}" \
-H "X-Imagen-API-Signature: {APPLICATION SIGNATURE}" \
-H "Accept: application/json" \
-X GET https://{MEDIACONTROLCENTRE_HOST}[:PORT]/core/v1/application
Example Result - JSON
{
"Application":{
"Name":"testing app",
"Created":"2015-06-08T16:12:45Z",
"Enabled":1,
"RedirectURI":"https://example.com/callback/myapp/callback/",
"Contact":"example@example.com",
"Website":"",
"Description":"",
"Logo":"",
"SecretAccessKey":"BDbCwNCGI4wKcBuB2mTNCjjmYQB2KDroVYb4yaNN",
"DeveloperEmail":"developer@example.com",
"ApplicationType":"web",
"DatabaseID": "1",
"Scopes": [
{
"Name": "readUsersData",
"Description": "View user data"
},
{
"Name": "modifyUsersData",
"Description": "View and modify records, media and collections"
}
]
}
}