Community:NDR/authorizeApplication

From NSDLWiki

Jump to: navigation, search

Contents

[hide]

Return to NDR/API


Under Construction


NDR API Documentation - authorizeApplication

Allows the collection owner to authorize an application to affect the collection.

Request URL

http://ndr.nsdlib.org/api/authorizeApplication
Must be an HTTP POST request.

Arguments

  • inputXML (required)
    • Collection Aggregator Handle (required) - the handle of the Collection Aggregator being affected.
    • Agent Handle (required) - the handle of the Agent representing the application being given permission to affect the identified collection.

InputXML Example

Below is example inputXML for an authorizing an application to affect a collection.
<?xml version="1.0" encoding="UTF-8"?>
<inputXML 
      xmlns="http://ns.nsdlib.org/ndr/request_v2.00/" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
      xsi:schemaLocation="http://ns.nsdlib.org/ndr/request_v2.00/ http://ns.nsdlib.org/schemas/ndr/request_v2.00.xsd" 
     schemaVersion="1.00.000">
  <collection>2200/200603200913483T</collection>
  <agent>2200/20080467086543T</agent>
</inputXML>


Response Fields

  • SUCCESS or FAILURE

Response Example

<?xml version="1.0" encoding="UTF-8"?>
<NSDLDataRepository schemaVersion="1.00.000" 
       xmlns="http://ns.nsdlib.org/ndr/response_v2.00/" 
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
       xsi:schemaLocation="http://ns.nsdlib.org/ndr/response_v2.00/ http://ns.nsdlib.org/schemas/ndr/response_v2.00.xsd">
  <responseTime>2006-04-10T18:07:53Z</responseTime>
  <requestURL>http://ndr.nsdlib.org/api/authorizeApplication</requestURL>
  <resultData>
    TBA
  </resultData>
</NSDLDataRepository>

API Links:

Personal tools