Giter VIP home page Giter VIP logo

www-orcid's Introduction

NAME

WWW::ORCID - A client for the ORCID 2.0 API

SYNOPSIS

my $client = WWW::ORCID->new(client_id => "XXX", client_secret => "XXX");

my $client = WWW::ORCID->new(client_id => "XXX", client_secret => "XXX", sandbox => 1);

my $client = WWW::ORCID->new(client_id => "XXX", client_secret => "XXX", public => 1);

DESCRIPTION

A client for the ORCID 2.x API.

STATUS

The client is mostly complete. The 2.0 member API is implemented except notification-permission. The 2.0 public API is implemented except identifiers and status. The 2.1 member API has not yet been implemented.

CREATING A NEW INSTANCE

The new method returns a new 2.0 API client.

Arguments to new:

client_id

Your ORCID client id (required).

client_secret

Your ORCID client secret (required).

version

The only possible value at the moment is "2.0" which will load WWW::ORCID::API::v2_0 or WWW::ORCID::API::v2_0_public.

sandbox

The client will use the API sandbox if set to 1.

public

The client will use the ORCID public API if set to 1. Default is the ORCID member API.

transport

Specify the HTTP client to use. Possible values are LWP or HTTP::Tiny. Default is LWP.

METHODS

Please refer to the API clients WWW::ORCID::API::v2_0 and WWW::ORCID::API::v2_0_public for method documentation.

SEE ALSO

https://api.orcid.org/v2.0/#/Member_API_v2.0

AUTHOR

Patrick Hochstenbach <patrick.hochstenbach at ugent.be>

Nicolas Steenlant, <nicolas.steenlant at ugent.be>

Simeon Warner <simeon.warner at cornell.edu>

LICENSE AND COPYRIGHT

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

www-orcid's People

Contributors

jjatria avatar manwar avatar nics avatar phochste avatar vpeil avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

www-orcid's Issues

Support for API v2.0

On February 14th, ORCID released a new version of their API.

According to them:

We are aiming to sunset 1.2 in late 2017. Regardless of the sunset date, if you agree with ORCID’s mission and care about researchers interact with ORCID you’ll want to move to 2.0 now.

What is the plan for changes in this distribution to support 2.0? Since the old API will sunset as early as late this year, I imagine having a new namespace (such as WWW::ORCID::v2 or something like that) is not so useful.

I haven't looked at this in detail, but I'm thinking it could be specified in the constructor. As in

# From now and for some time
# Maybe issuing a warning?
my $old = WWW::ORCID->new;
my $new = WWW::ORCID->new(
  version => 2.0,
);

# From that cutoff time until "late 2017"
my $old = WWW::ORCID->new(
  version => 1.0,
);
my $new = WWW::ORCID->new;

That way, we ensure not to break compatibility too suddenly, and we maintain the current namespace.

If this looks reasonable, I can submit a PR.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.