Skip to content

Commit

Permalink
remove get_dataset_metadata from Api()
Browse files Browse the repository at this point in the history
  • Loading branch information
skasberger committed Jun 11, 2019
1 parent 9d18255 commit e9ebea4
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/pyDataverse/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,29 +750,6 @@ def delete_dataset(self, identifier, auth=True):
print('Dataset {} deleted'.format(identifier))
return resp

def get_dataset_metadata(self, identifier, auth=True):
"""Get the metadatablocks of the fiven dataset.
resp.status_code:
200: metadata updated
Parameters
----------
identifier : string
Doi of the dataset. e.g. `doi:10.11587/8H3N93`.
auth : bool
Should an api token be sent in the request. Defaults to `False`.
Returns
-------
dictionary
Metadata of given dataset
"""
resp = self.get_dataset(identifier,auth=auth)
return resp.json()["data"]["latestVersion"]["metadataBlocks"]["citation"]


def edit_dataset_metadata(self, identifier, metadata, is_replace=False, auth=True):
"""Edit metadata of a given dataset. `Offical documentation
<http://guides.dataverse.org/en/latest/api/native-api.html#
Expand Down

0 comments on commit e9ebea4

Please sign in to comment.