generated from nathanwoodburn/python-webserver-template
36 lines
686 B
Python
36 lines
686 B
Python
|
import json
|
||
|
import requests
|
||
|
|
||
|
|
||
|
# Chain Data
|
||
|
info = {
|
||
|
"name": "Example Chain",
|
||
|
"description": "This is a plugin to be used as an example",
|
||
|
"version": "1.0",
|
||
|
"author": "Nathan.Woodburn/"
|
||
|
}
|
||
|
|
||
|
|
||
|
# Functions
|
||
|
functions = {
|
||
|
"search":{
|
||
|
"name": "Search Owned",
|
||
|
"type": "default",
|
||
|
"description": "Search for owned domains containing a string",
|
||
|
"params": {
|
||
|
"search": {
|
||
|
"name":"Search string",
|
||
|
"type":"text"
|
||
|
}
|
||
|
},
|
||
|
"returns": {
|
||
|
"domains":
|
||
|
{
|
||
|
"name": "List of owned domains",
|
||
|
"type": "list"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|