Eduardo Marcel Maçan
@eduardomacan
[email protected]
[email protected]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | from getpass import getpass
import gdata.apps.service
DOMAIN = 'macan.eng.br'
username = raw_input('Admin account : ')
password = getpass('Admin password : ')
service = gdata.apps.service.AppsService(email=username, domain=DOMAIN,
password=password)
service.ProgrammaticLogin()
userfeed = service.RetrieveAllUsers()
for user in userfeed.entry:
print user.login.user_name
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | from getpass import getpass
import gdata.apps.service
DOMAIN = 'macan.eng.br'
username = raw_input('Admin email : ')
password = getpass('Admin password : ')
service = gdata.apps.service.AppsService(email=username, domain=DOMAIN,
password=password)
service.ProgrammaticLogin()
cont = True
while cont:
nome = raw_input("Nome : ")
sobrenome = raw_input("Sobrenome : ")
login = raw_input("Login : ")
senha = getpass("Senha : ")
service.CreateUser(login, sobrenome, nome, senha )
yesno= raw_input('Digite "s" para adicionar outro: ')
cont = yesno=="s" or yesno == "S"
else:
print "Saindo..."
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | from getpass import getpass
import gdata.apps.service
#change this to your google apps domain
DOMAIN='macan.eng.br'
username = raw_input('Admin email : ')
password = getpass('Admin password : ')
olduser = raw_input('Old user login : ')
manager = raw_input('Add alias to : ')
service = gdata.apps.service.AppsService(email=username, domain=DOMAIN,
password=password)
service.ProgrammaticLogin()
print "Adding nickname %s to %s" % (olduser,manager)
service.CreateNickname(manager,olduser)
print "Feito"
|
Table of Contents | t |
---|---|
Exposé | ESC |
Full screen slides | e |
Presenter View | p |
Source Files | s |
Slide Numbers | n |
Toggle screen blanking | b |
Show/hide slide context | c |
Notes | 2 |
Help | h |