Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Description

Use the feature GetDoiInformationsRequest to receive DOI-information in a given period of time.

Available starting from Backclick-Version: 5.9.19

In order to receive a list of DOI-information, you have to provide the following information:

  • Mandator ID
  • Start-Date
  • EndDate wenn kein End Datum angegeben wird, werden die Daten bis zum jetzigen Zeitpunkt ausgegeben. optionale Angabe
  • API-Key (optional authentication, if not provided the IP address will be used for authentication)

As a result you will receive a list of email addresses containing the date and mailing list of all applicable subscribers.

Example

 

$client = new SoapClient($wsdlUrl);
date_default_timezone_set('Europe/Berlin');

$getDaoInformations = new StdClass();
$getDaoInformations->mandatorId = 0;
$getDaoInformations->apiKey = 'apiKey';
$getDaoInformations->startDate = date
//$getDaoInformations->endDate = 0;
try {
    $result = $client->getDoiInformations($getDaoInformations);
    var_dump($result);
} catch (Exception $e) {
    //Hier ist ein Fehler aufgetreten und abgefangen worden, wir geben die Fehlermeldung aus.
    echo "Error: " . $e->getMessage() . "\n";
}

 


Beispielausgabe


object(stdClass)#3 (1) {
  ["doi-notification"]=>
  object(stdClass)#4 (1) {
    ["email"]=>
    array(2) {
      [0]=>
      object(stdClass)#5 (3) {
        ["_"]=>
        string(31) "test231645978@backclick-test.de"
        ["confirmation_date"]=>
        int(1453984102)
        ["newsletters"]=>
        string(1) "3"
      }
      [1]=>
      object(stdClass)#6 (3) {
        ["_"]=>
        string(28) "test871199@backclick-test.de"
        ["confirmation_date"]=>
        int(1454065482)
        ["newsletters"]=>
        string(1) "1"
      }
    }
  }
}

Source-Code

In order to test a working example you can download the source code.

Example for receiving DOI-information


 

  • No labels