Difference between revisions of "API:Network/TrustedFP/Add"

From BNC4FREE
Jump to navigation Jump to search
m (Replace references to Freenode)
 
Line 26: Line 26:
 
| required
 
| required
 
| The name of the network that requires the fingerprint adding
 
| The name of the network that requires the fingerprint adding
| Freenode
+
| LiberaChat
 
|-
 
|-
 
| fp
 
| fp
Line 46: Line 46:
 
     -d username=TestyTest
 
     -d username=TestyTest
 
     -d key=d681883383bcf7963427b1629d0b9963cf6335b5
 
     -d key=d681883383bcf7963427b1629d0b9963cf6335b5
     -d network=Freenode
+
     -d network=LiberaChat
 
     -d fp=ec:6f:7a:15:4a:e8:e9:b2:aa:fc:1f:f4:22:9d:4c:2e:90:80:3c:ec:04:25:e2:04:99:2c:3a:ef:5e:13:dc:a6
 
     -d fp=ec:6f:7a:15:4a:e8:e9:b2:aa:fc:1f:f4:22:9d:4c:2e:90:80:3c:ec:04:25:e2:04:99:2c:3a:ef:5e:13:dc:a6
  

Latest revision as of 17:21, 26 May 2021

Resource URI

   https://api.bnc4free.com/network/trustedfp/add

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 that requires the fingerprint adding LiberaChat
fp required The trusted fingerprint to be added for the network ec:6f:7a:15:4a:e8:e9:b2:aa:fc:1f:f4:22:9d:4c:2e:90:80:3c:ec:04:25:e2:04:99:2c:3a:ef:5e:13:dc:a6
user optional (Staff Only) The username of the person of whom needs the fingerprint adding to the network AnotherTestyTest

Example Request

   curl -XPOST 
    --url https://api.bnc4free.com/network/trustedfp/add
    -d server=Apple
    -d username=TestyTest
    -d key=d681883383bcf7963427b1629d0b9963cf6335b5
    -d network=LiberaChat
    -d fp=ec:6f:7a:15:4a:e8:e9:b2:aa:fc:1f:f4:22:9d:4c:2e:90:80:3c:ec:04:25:e2:04:99:2c:3a:ef:5e:13:dc:a6

Example Response

   {
      "status" : "success",
      "username" : "TestyTest",
      "trustedfps" : {
          "ec:6f:7a:15:4a:e8:e9:b2:aa:fc:1f:f4:22:9d:4c:2e:90:80:3c:ec:04:25:e2:04:99:2c:3a:ef:5e:13:dc:a6"
      }
   }