(cls, username, password, permissions=None)
return self
To create a new ApiUser on the server:
        ./manage.py shell

        $ from corehq.apps.api.models import *
        $ ApiUser.create('buildserver', 'RANDOM').save()
To create a new ApiUser on the server:
        ./manage.py shell
To create a new ApiUser on the server : . / manage . py shell
def create(cls, username, password, permissions=None):
        """
        To create a new ApiUser on the server:
        ./manage.py shell

        $ from corehq.apps.api.models import *
        $ ApiUser.create('buildserver', 'RANDOM').save()

        """
        self = cls()
        self.id = "ApiUser-%s" % username
        self.set_password(password)
        self.permissions = permissions or []
        return self
def create ( cls , username , password , permissions = None ) : self = cls ( ) self . id = "ApiUser-%s" % username self . set_password ( password ) self . permissions = permissions or [ ] return self