Beispiel #1
0
# Unique username assigned by your system
# more info: https://veridu.com/wiki/User_ID
username = "******"

# API and Session SDK instantiation
# more info: https://github.com/veridu/veridu-python
api = API(VeriduSettings["key"], VeriduSettings["secret"],
          VeriduSettings["version"])
session = Session(api)

# creates new a read/write Veridu session
# more info: https://veridu.com/wiki/Session_Resource
session.create(False)
# assigns the fresh Veridu session to user
# more info: https://veridu.com/wiki/User_Resource
session.assign(username)

# mimics form data
data = {
    "firstname": "",
    "lastname": "",
    "birthyear": "",
    "birthmonth": "",
    "birthday": "",
    "address1": "",
    "postcode": ""
}

# sends the form data
# more info: https://veridu.com/wiki/Personal_Resource
response = api.fetch("GET", "personal/%s" % username)
Beispiel #2
0
# Unique username assigned by your system
# more info: https://veridu.com/wiki/User_ID
username = "******";

# API and Session SDK instantiation
# more info: https://github.com/veridu/veridu-python
api = API(VeriduSettings["key"], VeriduSettings["secret"], VeriduSettings["version"])
session = Session(api)

# creates new a read/write Veridu session
# more info: https://veridu.com/wiki/Session_Resource
session.create(False)
# assigns the fresh Veridu session to user
# more info: https://veridu.com/wiki/User_Resource
session.assign(username)

# mimics form data
data = {
    "firstname": "",
    "lastname": "",
    "birthyear": "",
    "birthmonth": "",
    "birthday": "",
    "address1": "",
    "postcode": ""
}

# sends the form data
# more info: https://veridu.com/wiki/Personal_Resource
response = api.fetch("GET", "personal/%s" % username)