Skip to content

versions as arguments #29

@lizgzil

Description

@lizgzil

It'd be nice to have the version parameters as arguments to the PublicAPI class in orcid.py. At the moment I can't use your code since SEARCH_VERSION is hard coded in (I wanted to use SEARCH_VERSION="/v3.0").
e.g.

class PublicAPI(object):
    """Public API."""

    TYPES_WITH_PUTCODES = set(['address',
                               'education',
                               'email',
                               'employment',
                               'external-identifier',
                               'funding',
                               'keywords',
                               'other-names',
                               'peer-review',
                               'researcher-urls',
                               'work'])

    TYPES_WITH_MULTIPLE_PUTCODES = set(['works'])

    def __init__(self, institution_key, institution_secret, sandbox=False,
                 timeout=None, do_store_raw_response=False, search_version="/v2.0"):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions