pfsense_fauxapi | REST based API interface for pfSense | REST library
kandi X-RAY | pfsense_fauxapi Summary
kandi X-RAY | pfsense_fauxapi Summary
REST based API interface for pfSense 2.3.x and 2.4.x to facilitate devops
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pfsense_fauxapi
pfsense_fauxapi Key Features
pfsense_fauxapi Examples and Code Snippets
Community Discussions
Trending Discussions on pfsense_fauxapi
QUESTION
I have this Python script to control a PfSense router via FauxAPI. The problem is that when i call a function it gives an error. I think i'm calling the function wrong. Does anyone know how to call them? Here is a link to the API i'm using: https://github.com/ndejong/pfsense_fauxapi I have tried calling config_get(self, section=none) but that does not seem to work.
...ANSWER
Answered 2020-Oct-22 at 09:49You need to create an object of the class in order to call the functions of the class. For example
x = PfsenseFauxapi()
(the init method is called during contructing the object)
and then go by x.'any function'
. Maybe name the variable not x for a good naming quality.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pfsense_fauxapi
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page