generated from nathanwoodburn/firewallet-plugin-template
feat: Inital setup
This commit is contained in:
52
shakestation.py
Normal file
52
shakestation.py
Normal file
@@ -0,0 +1,52 @@
|
||||
import json
|
||||
import account
|
||||
import requests
|
||||
|
||||
# Plugin Data
|
||||
info = {
|
||||
"name": "Shakestation",
|
||||
"description": "Connect to Shakestation",
|
||||
"version": "1.0",
|
||||
"author": "Nathan.Woodburn/"
|
||||
}
|
||||
|
||||
# Functions
|
||||
functions = {
|
||||
"main":{
|
||||
"name": "Function name",
|
||||
"type": "default",
|
||||
"description": "Description",
|
||||
"params": {},
|
||||
"returns": {
|
||||
"status":
|
||||
{
|
||||
"name": "Status of the function",
|
||||
"type": "text"
|
||||
}
|
||||
}
|
||||
},
|
||||
"domain-info": {
|
||||
"name": "Domain info",
|
||||
"type": "search",
|
||||
"description": "Check if Shakestation has information on a domain",
|
||||
"params": {},
|
||||
"returns": {
|
||||
"info":
|
||||
{
|
||||
"name": "Information on the domain",
|
||||
"type": "text"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
def main(params, authentication):
|
||||
return {"status": "Success"}
|
||||
|
||||
def domain_info(params, authentication):
|
||||
domain = params.get("domain")
|
||||
if not domain:
|
||||
return {"info": "No domain provided"}
|
||||
|
||||
|
||||
return {"info": "TODO"}
|
||||
Reference in New Issue
Block a user