forked from Fragrance/eaquira
29 lines
633 B
Python
29 lines
633 B
Python
import json
|
|
import pytz
|
|
|
|
from sdgb import sdgb_api
|
|
from datetime import datetime
|
|
|
|
from settings import userId
|
|
from settings import regionId
|
|
from settings import clientId
|
|
from settings import placeId
|
|
|
|
def login(timestamp):
|
|
data = json.dumps({
|
|
"userId": userId,
|
|
"accessCode": "",
|
|
"regionId": regionId,
|
|
"placeId": placeId,
|
|
"clientId": clientId,
|
|
"dateTime": timestamp,
|
|
"isContinue": False,
|
|
"genericFlag": 0,
|
|
})
|
|
|
|
login_result = json.loads(sdgb_api(data, "UserLoginApi", userId))
|
|
return login_result
|
|
|
|
if __name__ == "__main__":
|
|
print(login(int(input())))
|