Difference between revisions of "API:Network/Server/Delete"
Jump to navigation
Jump to search
(API Network Server Delete Info) |
m (→Example Response: Replace references to Freenode) |
||
(One intermediate revision by the same user not shown) | |||
Line 26: | Line 26: | ||
| required | | required | ||
| The name of the network to be added | | The name of the network to be added | ||
− | | | + | | LiberaChat |
|- | |- | ||
| ircserver | | ircserver | ||
| required | | required | ||
| The IRC server to be deleted from the network | | The IRC server to be deleted from the network | ||
− | | irc. | + | | irc.libera.chat |
|- | |- | ||
| ircport | | ircport | ||
Line 56: | Line 56: | ||
-d username=TestyTest | -d username=TestyTest | ||
-d key=d681883383bcf7963427b1629d0b9963cf6335b5 | -d key=d681883383bcf7963427b1629d0b9963cf6335b5 | ||
− | -d network= | + | -d network=LiberaChat |
− | -d ircserver=irc. | + | -d ircserver=irc.libera.chat |
-d ircport=+6697 | -d ircport=+6697 | ||
Line 64: | Line 64: | ||
"status" : "success", | "status" : "success", | ||
"username" : "TestyTest", | "username" : "TestyTest", | ||
− | " | + | "LiberaChat" : { |
− | "irc. | + | "irc.libera.chat" : { |
− | "host" : "irc. | + | "host" : "irc.libera.chat", |
"port" : "+6697", | "port" : "+6697", | ||
"password" : "" | "password" : "" | ||
} | } | ||
}, | }, | ||
− | "networks" : " | + | "networks" : "LiberaChat" |
} | } | ||
[[Category:API_Functions]] | [[Category:API_Functions]] |
Latest revision as of 17:17, 26 May 2021
Resource URI
https://api.bnc4free.com/network/server/delete
Parameters
Variable | Required | Description | Example |
---|---|---|---|
server | required | The name of the server | Apple |
username | required | Your Username | TestyTest |
key | required | Your API Key | d681883383bcf7963427b1629d0b9963cf6335b5 |
network | required | The name of the network to be added | LiberaChat |
ircserver | required | The IRC server to be deleted from the network | irc.libera.chat |
ircport | required | The IRC port that corresponds with the server to be deleted | +6697 |
ircpassword | optional | The IRC password that was added with the server (if any) | password123 |
user | optional | (Staff Only) The username to delete a server from a network for | AnotherTestyTest |
Example Request
curl -XPOST --url https://api.bnc4free.com/network/server/delete -d server=Apple -d username=TestyTest -d key=d681883383bcf7963427b1629d0b9963cf6335b5 -d network=LiberaChat -d ircserver=irc.libera.chat -d ircport=+6697
Example Response
{ "status" : "success", "username" : "TestyTest", "LiberaChat" : { "irc.libera.chat" : { "host" : "irc.libera.chat", "port" : "+6697", "password" : "" } }, "networks" : "LiberaChat" }