You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enrique M.G edited this page Jan 29, 2021
·
3 revisions
Como usar el cliente N4D
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()