utils/handsfree/handsfree.py
def create_user_api_key(self):
        '''
        Creates a user API key and stores it locally in a file called userkeys.json
        '''

        print "{:80}".format("Create User API Key"),

        cmd = '{}/create-initial-apikeys.py ' \
            '--genUserKey ' \
            '--initialUser /tmp/initial-account.json ' \
            '--initialAccount /tmp/initial_cloud.json ' \
            '--output /tmp/userkeys.json ' \
            '--context /tmp/master-apikey.json'.format(self.sbin_dir)

        sudo(cmd)
        print "{:}".format('[ ' + colored('OK', 'green') + ' ]')

        get('/tmp/userkeys.json', '{}/userkeys.json'.format(self.setup_dir))

        Creates a user API key and stores it locally in a file called userkeys.json
        
Creates a user API key and stores it locally in a file called userkeys.json
Creates a user API key and stores it locally in a file called userkeys . json
def create_user_api_key(self):
        print "{:80}".format("Create User API Key"),
        cmd = '{}/create-initial-apikeys.py ' \
            '--genUserKey ' \
            '--initialUser /tmp/initial-account.json ' \
            '--initialAccount /tmp/initial_cloud.json ' \
            '--output /tmp/userkeys.json ' \
            '--context /tmp/master-apikey.json'.format(self.sbin_dir)
        sudo(cmd)
        print "{:}".format('[ ' + colored('OK', 'green') + ' ]')
        get('/tmp/userkeys.json', '{}/userkeys.json'.format(self.setup_dir))
def create_user_api_key ( self ) : print "{:80}" . format ( "Create User API Key" ) , cmd = '{}/create-initial-apikeys.py ' '--genUserKey ' '--initialUser /tmp/initial-account.json ' '--initialAccount /tmp/initial_cloud.json ' '--output /tmp/userkeys.json ' '--context /tmp/master-apikey.json' . format ( self . sbin_dir ) sudo ( cmd ) print "{:}" . format ( '[ ' + colored ( 'OK' , 'green' ) + ' ]' ) get ( '/tmp/userkeys.json' , '{}/userkeys.json' . format ( self . setup_dir ) )
Creates a user API key and stores it locally in a file called userkeys.json
Creates a user API key and stores it locally in a file called userkeys . json
'''
        Creates a user API key and stores it locally in a file called userkeys.json
        '''
self