Datahub::Factory::Exporter::Datahub - Export items to a Datahub instance
use Datahub::Factory; my $datahub_options = { datahub_url => 'https://www.datahub.be', oauth_client_id => 'mydatahub', oauth_client_secret => 'thedatahub', oauth_username => 'datahub', oauth_password => 'adatahub' }; my $exporter = Datahub::Factory->exporter('Datahub')->new($datahub_options); $exporter->add({'id' => 1});
This module converts records to an exchange format and exports them to a Datahub instance.
datahub_url
URL where the Datahub resides. This URL is the base URL of the datahub, not the API url. The module will create the correct API URL automatically. Required.
datahub_format
Data will be converted to this format before exporting. Set to LIDO by default.
LIDO
oauth_client_id
OAuth 2 client ID. Required.
oauth_client_secret
OAuth2 client secret. Required.
oauth_username
Datahub username. Required.
oauth_password
Datahub password. Required.
Pieter De Praetere <pieter@packed.be>
Matthias Vandermaesen <matthias.vandermaesen@vlaamsekunstcollectie.be>
Copyright 2017 - PACKED vzw, Vlaamse Kunstcollectie vzw
This library is free software; you can redistribute it and/or modify it under the terms of the GPLv3.
To install Datahub::Factory, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Datahub::Factory
CPAN shell
perl -MCPAN -e shell install Datahub::Factory
For more information on module installation, please visit the detailed CPAN module installation guide.