-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Enrique M.G edited this page Jan 29, 2021
·
3 revisions
Conexión anónima a servidor local:
import n4d.client
c = n4d.client.Client()
v = c.MyPlugin.MyMethod()
Conexión con password:
import n4d.client
c = n4d.client.Client(address="https://server:9779", user="lliurex", password="1234")
v = c.MyPlugin.MyMethod()
Solicitar un ticket:
import n4d.client
c = n4d.client.Client(address="https://server:9779", user="lliurex", password="1234")
t = c.get_ticket()
if (t.valid()):
c = n4d.client.Client(ticket=t)
v = c.MyPlugin.MyMethod()
Solicitar ticket maestro:
import n4d.client
master_key = n4d.client.Key.master_key()
if (master_key.valid()):
c = n4d.client.Client(key=master_key)
v = c.MyPlugin.MyMethod()