Ejemplo n.º 1
0
def get_client(username="******", password="******", prefix='10.1234',
               with_fake_url=True):
    """Create a API client."""
    client = DataCiteMDSClient(
        username=username,
        password=password,
        prefix=prefix,
        test_mode=True,
    )
    if with_fake_url:
        # change URL for tests
        client.api_url = APIURL
    return client