You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 5
Next »
Standard registration
It mimics the creation of users by a spreadsheet upload. After running the code, users will receive an email from RosettaHub to verify their email and accept the Ts&Cs, once their emails are verified they get automatically processed and allocated a cloud account and receive an email from RosettaHub with their credentials (steps 6 and 7 from the spreadsheet upload process).
Install the Python module zeep
from zeep import Client
import os
platform = zeep.Client('https://api.rosettahub.com/public/PlatformServices?wsdl').service
session = platform.newSession("{your_login}", "{your_password}", 0 )
registrations = []
registrations.append({"firstName":"Louise","lastName":"Roberts", "email":"louise.roberts@washington.rosettahub.com", "entities",["WASHINGTON-BigData"],"institutionId":"WASHINGTON","regType":"Researcher"})
platform.cpocRegisterUsers(session,registrations,None)
|
Light registration