All URIs are relative to https://backend.id4i.de
| Method | HTTP request | Description |
|---|---|---|
| getSendInfo | GET /api/v1/transfers/{id4n}/sendInfo | Show transfer preparation information |
| prepare | PUT /api/v1/transfers/{id4n}/sendInfo | Prepare an object for transfer |
| receive | PUT /api/v1/transfers/{id4n}/receiveInfo | Transfer a GUID or collection, obtaining it (i.e. becoming the holder) and if allowed also taking ownership |
TransferSendInfo getSendInfo(id4n)
Show transfer preparation information
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.TransferApi();
var id4n = "id4n_example"; // String | The ID4N to retrieve information about
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getSendInfo(id4n, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| id4n | String | The ID4N to retrieve information about |
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
Object prepare(id4n, request)
Prepare an object for transfer
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.TransferApi();
var id4n = "id4n_example"; // String | The ID4N to prepare for transfer
var request = new Id4iApi.TransferSendInfo(); // TransferSendInfo | Transfer preparation status
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.prepare(id4n, request, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| id4n | String | The ID4N to prepare for transfer | |
| request | TransferSendInfo | Transfer preparation status |
Object
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
receive(id4n, request)
Transfer a GUID or collection, obtaining it (i.e. becoming the holder) and if allowed also taking ownership
Taking ownership can be forbidden by a previous owner. See methods prepare and getInfo
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.TransferApi();
var id4n = "id4n_example"; // String | This ID4N identifies the object to take hold of
var request = new Id4iApi.TransferReceiveInfo(); // TransferReceiveInfo | Required information to receive an id4n object
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.receive(id4n, request, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| id4n | String | This ID4N identifies the object to take hold of | |
| request | TransferReceiveInfo | Required information to receive an id4n object |
null (empty response body)
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json