Hi Christian,


You need to have the editor role in the GBIF user registry, and be associated 
with the institution under which the data is going to be published.

I have done that and you should be able to publish using the API by posting 
your user name and password along with the request.

At this point I need to know which publishers you would like to have editor 
rights for.



A little warning: Please be aware that publishing with the API is a much more 
fragile process than using the IPT. We have previously had organizations 
getting entangled in the API publication process, so be careful. I suggest 
publishing against the gbif-uat.org test site to begin with.

You have been registered as editor with the user name 'chrissvi' and the 
account should work soon.



Here is an example using CURL in the Cygwin console:

[cid:image001.jpg at 01D314F5.5B7D55C0]



The last line next to the red arrow is the return value after creating a 
dataset. This is the dataset UUID.

I also have some python code for doing these things.



Let me know if you need any help down the line.





Best,

Jan



-----Original Message-----
From: API-users [mailto:api-users-boun...@lists.gbif.org] On Behalf Of 
Christian Svindseth
Sent: 14. august 2017 02:00
To: api-users at lists.gbif.org
Subject: [API-users] Registry API and authentication



Hello,



We have a number of datasets we'd like to publish to GBIF directly through the 
registry APIs, bypassing our IPT completely. I've been looking through the 
documentation, but got stuck trying to figure out how to authenticate against 
the registry API. I suppose the organization name/password pairs used in the 
IPT might come into play at some point, but this isn't obvious from the 
documentation..? Or maybe my own account needs to be authorized to access the 
registry?



Would love to get some input on this, and if anyone else is doing something 
similar code samples would be much appreciated!



Thanks,

Christian Svindseth

GBIF Norway

_______________________________________________

API-users mailing list

API-users at lists.gbif.org<mailto:API-users at lists.gbif.org>

https://lists.gbif.org/mailman/listinfo/api-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://lists.gbif.org/pipermail/api-users/attachments/20170814/bbfe4533/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 39202 bytes
Desc: image001.jpg
URL: 
<https://lists.gbif.org/pipermail/api-users/attachments/20170814/bbfe4533/attachment-0001.jpg>

Reply via email to