teamsquare / s2_netbox Goto Github PK
View Code? Open in Web Editor NEWWrapper for the S2 NetBox API
License: MIT License
Wrapper for the S2 NetBox API
License: MIT License
Currently you have to specify a nil, or empty Hash
to the send_request
method:
@result = S2Netbox::Commands::ApiVersion.get_version({}, 'session_id')
Would be much more convenient to be able to skip the arguments entirely and just send the session_id as the first parameter:
@result = S2Netbox::Commands::ApiVersion.get_version('session_id')
Eg:
:person_id
should be converted to PERSONID
for all commands. Currently done at a higher level so that only some commands get this treatment.
Currently must be an array of access levels, even when specifying just a single one.
When performing S2Netbox::Commands::Person.modify
and passing in the exp_date
as nil, the xml presented in the request omits this attribute, ie the raw request is:
"APIcommand=<NETBOX-API sessionid='****'><COMMAND name='ModifyPerson' num='1'><PARAMS><FIRSTNAME>Dummy</FIRSTNAME><LASTNAME>Name</LASTNAME><ACTDATE>2016-11-18 09:00</ACTDATE><UDF1>red squirrel</UDF1><UDF2>****</UDF2><ACCESSLEVELS><ACCESSLEVEL>Member AcsLvl</ACCESSLEVEL></ACCESSLEVELS><PERSONID>****</PERSONID></PARAMS></COMMAND></NETBOX-API>"
.
This means that if the attribute was previously set on the netbox, it is not set to null by this modify action.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.