23 lines
572 B
Python
23 lines
572 B
Python
import json
|
|
import logging
|
|
import pydapper
|
|
import mysql.connector
|
|
|
|
|
|
def GetVerify(options):
|
|
"""
|
|
|
|
"""
|
|
print(options)
|
|
sentinel = object()
|
|
# 'mysql+pymysql://' + username + ':' + password + '@' + server + database
|
|
# with connect("mysql+mysql://root:pydapper@localhost:3307/pydapper", autocommit=True) as commands:
|
|
# data = commands.query_single_or_default("SELECT id from `user` WHERE api_key=?", )
|
|
# Implement your business logic here
|
|
# All the parameters are present in the options argument
|
|
|
|
return json.dumps("<integer>"), 200
|
|
|
|
|
|
|