Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

It mimics the creation of a user from the RosettaHub portal. It does not require users to verify their emails and gives the manager the option of setting a user password and of allocating or not allocating a cloud account to the new member.

All you need to do is run a code similar to the one below by inputting the user's first name, last name, email, password, type, organization, root cloud account uid and initial budget. Your root cloud accounts can be found in the panel My Cloud Accounts

from zeep import Client

import os

platform = zeep.Client('https://api.rosettahub.com/public/PlatformServices?wsdl').service

apiKey = "Your Api Key"

platform.cpocRegisterUserLight(apiKey,"Louise","Roberts","louise.roberts@washington.rosettahub.com","A6tK:L?6rT@2","WASHINGTON","Researcher","u-e4e910fc-7120-11ea-a061-02658a10e012",10,None)