-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ac2b1d4
commit 1188e65
Showing
8 changed files
with
3,253 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
import requests | ||
#编创协第三方接口授权:https://bcmcreator.cn/index.php?mod=OAuth# | ||
#编创协接口开放平台:https://api.bcmcreator.cn/ | ||
def user_info(id): | ||
url = 'https://api.bcmcreator.cn/user_base/user_info.php?id=' + str(id) | ||
urlrequests = requests.get(url).text | ||
return(urlrequests) | ||
def user_matchinfo(id): | ||
url = 'https://api.bcmcreator.cn/user_base/user_matchinfo.php?id=' + str(id) | ||
urlrequests = requests.get(url).text | ||
return(urlrequests) | ||
def user_matchlogin(oacode,md5,sign,describe): | ||
url = 'https://api.bcmcreator.cn/user_base/user_matchlogin.php' | ||
data = {"oacode":oacode,"md5":md5,"sign":sign,"describe":describe} | ||
urlrequests = requests.post(url,data=data).text | ||
return(urlrequests) | ||
def match_info(t,md5,sign): | ||
url = 'https://api.bcmcreator.cn/match_base/match_info.php' | ||
data = {"t":t,"md5":md5,"sign":sign} | ||
urlrequests = requests.post(url,data=data).text | ||
return(urlrequests) | ||
def match_enter(t,oacode,md5,sign): | ||
url = 'https://api.bcmcreator.cn/match_base/match_enter.php' | ||
data = {"t":t,"oacode":oacode,"md5":md5,"sign":sign} | ||
urlrequests = requests.post(url,data=data).text | ||
return(urlrequests) | ||
def match_end(t,md5,sign): | ||
url = 'https://api.bcmcreator.cn/match_base/match_end.php' | ||
data = {"t":t,"md5":md5,"sign":sign} | ||
urlrequests = requests.post(url,data=data).text | ||
return(urlrequests) | ||
def user_info_code_Plus(code): | ||
url = 'https://api.bcmcreator.cn/user_info.php?code=' + str(code) | ||
urlrequests = requests.get(url).text | ||
return(urlrequests) | ||
def user_info_xjm_Plus(xjm): | ||
url = 'https://api.bcmcreator.cn/user_info.php?xjm=' + str(xjm) | ||
urlrequests = requests.get(url).text | ||
return(urlrequests) | ||
def user_destroyCode(code): | ||
url = "https://api.bcmcreator.cn/user_destroyCode.php?code=" + str(code) | ||
urlrequests = requests.get(url).text | ||
return(urlrequests) | ||
def association_log(limit): | ||
url = 'https://api.bcmcreator.cn/user_base/association_log.php?limit=' + str(limit) | ||
urlrequests = requests.get(url).text | ||
return(urlrequests) | ||
def association_log_uid(uid,limit): | ||
url = 'https://api.bcmcreator.cn/user_base/association_log.php?limit=' + str(limit) + '&uid=' + str(uid) | ||
urlrequests = requests.get(url).text | ||
return(urlrequests) | ||
def association_log_id(id,limit): | ||
url = 'https://api.bcmcreator.cn/user_base/association_log.php?limit=' + str(limit) + '&id=' + str(id) | ||
urlrequests = requests.get(url).text | ||
return(urlrequests) | ||
def association_log_allid(id,uid,limit): | ||
url = 'https://api.bcmcreator.cn/user_base/association_log.php?limit=' + str(limit) + '&id=' + str(id) | ||
urlrequests = requests.get(url).text | ||
return(urlrequests) | ||
def user_workdata(BcxOA): | ||
data = {'code':str(BcxOA)} | ||
url = 'https://api.bcmcreator.cn/user_base/user_workdata.php' | ||
urlrequests = requests.post(url,data=data).text | ||
return(urlrequests) | ||
def user_workdata7(): | ||
url = 'https://api.bcmcreator.cn/user_base/user_workdata7.php' | ||
urlrequests = requests.get(url).text | ||
return(urlrequests) | ||
def user_workintroduce(code): | ||
url = f'https://api.bcmcreator.cn/user_base/user_workintroduce.php?code={code}' | ||
urlrequests = requests.get(url).text | ||
return(urlrequests) | ||
def robot(text,otherparty): #我 控 我 自 己 | ||
url = f'https://api.bcmcreator.cn/robot.php?text={text}&otherparty={otherparty}' | ||
urlrequests = requests.get(url).text | ||
return(urlrequests) | ||
def user_bcmlogin(user,pwd): | ||
data = {'user':str(user),'pwd':str(pwd)} | ||
url = 'https://api.bcmcreator.cn/login/user_bcmlogin.php' | ||
urlrequests = requests.post(url,data=data).text | ||
return(urlrequests) | ||
def qq_bcmlogin(rd): | ||
url = f'https://api.bcmcreator.cn/login/qq_bcmlogin.php?rd={rd}' | ||
urlrequests = requests.get(url).text | ||
return(urlrequests) | ||
def wx_bcmlogin(rd): | ||
url = f'https://api.bcmcreator.cn/login/wx_bcmlogin.php?rd={rd}' | ||
urlrequests = requests.get(url).text | ||
return(urlrequests) | ||
def code_bcmlogin(rd,code,parameter): | ||
url = f'https://api.bcmcreator.cn/login/code_bcmlogin.php?rd={rd}&code={code}¶meter={parameter}' | ||
urlrequests = requests.get(url).text | ||
return(urlrequests) | ||
def email(sign,md5,title,email,main,type): | ||
data = {'sign':str(sign),'md5':str(md5),'title':str(title),'email':str(email),'main':str(main),'type':str(type)} | ||
url = 'https://api.bcmcreator.cn/email.php' | ||
urlrequests = requests.post(url,data=data).text | ||
return(urlrequests) | ||
def match_query(id): | ||
url = f'https://api.bcmcreator.cn/match_base/match_query.php?id={id}' | ||
urlrequests = requests.get(url).text | ||
return(urlrequests) | ||
def RoomChat(sender_id,room_id,message): | ||
data = {"sender_id":str(sender_id),"room_id":str(room_id),"message":str(message)} | ||
url = "https://api.bcmcreator.cn/chat/RoomChat.php" | ||
urlrequests = requests.post(url,data=data).text | ||
return(urlrequests) | ||
def GetChat(room_id,limit): | ||
url = f"https://api.bcmcreator.cn/chat/getChat.php?room_id={room_id}&limit={limit}" | ||
urlrequests = requests.get(url).text | ||
return(urlrequests) | ||
def getChatUser(sender_id): | ||
url = f"https://api.bcmcreator.cn/chat/getChatUser.php?sender_id={sender_id}" | ||
urlrequests = requests.get(url).text | ||
return(urlrequests) | ||
def getChatUser_user_name(user_name): | ||
url = f"https://api.bcmcreator.cn/chat/getChatUser.php?user_name={user_name}" | ||
urlrequests = requests.get(url).text | ||
return(urlrequests) | ||
def RoomChat_meid(sender_id,room_id,message,meid): | ||
data = {"meid":str(meid),"sender_id":str(sender_id),"room_id":str(room_id),"message":str(message)} | ||
url = "https://api.bcmcreator.cn/chat/RoomChat.php" | ||
urlrequests = requests.post(url,data=data).text | ||
return(urlrequests) | ||
def getBlog(): | ||
url = "http://api.bcmcreator.cn/user_base/getBlog.php" | ||
urlrequests = requests.get(url).text | ||
return(urlrequests) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
import random | ||
import urllib | ||
import time | ||
#出于纪念就不覆盖了awa | ||
import os | ||
import filetype | ||
import demjson | ||
|
Oops, something went wrong.