示例#1
0
文件: index.py 项目: ShakhoVW/samples
# importing SDK modules
from Veridu.SDK.API import API
from Veridu.SDK.Session import Session

# importing client configuration
from settings import VeriduSettings

# 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": "",
示例#2
0
# importing SDK modules
from Veridu.SDK.API import API
from Veridu.SDK.Session import Session

# importing client configuration
from settings import VeriduSettings

# 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": "",
示例#3
0
# importing SDK modules
from Veridu.SDK.API import API
from Veridu.SDK.Session import Session

# importing client configuration
from settings import VeriduSettings

# 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(key=VeriduSettings["key"], secret=VeriduSettings["secret"], version=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)

print("""
<!DOCTYPE html>
<html lang="en-us">
    <head>
        <meta charset="utf-8">
        <!-- Loading the jQuery Library (required by Widget Library) -->
        <script type="text/javascript" src="//code.jquery.com/jquery-1.11.3.min.js"></script>