Tim DeNike,
To see the response back you must set the id in the jsonrpc request.
Here are some examples.
node_information
curl -v -H "Content-Type: application/json-rpc" -H "Request:
register_node" -X POST -d
'{"params":["mac","00:11:22:33:44:55"],"jsonrpc":"2.0","method":"node_information",
"id":0}' http://localhost:9090/
view_person
curl -v -H "Content-Type: application/json-rpc" -H "Request:
view_person" -X POST -d
'{"params":["timdenike"],"jsonrpc":"2.0","method":"view_person", "id" :
0}' http://localhost:9090/<http://localhost:9090/>
James Rouzier
[email protected] :: +1.514.755.3630 :: http://www.inverse.ca
Inverse inc. :: Leaders behind SOGo (http://www.sogo.nu) and PacketFence
(http://www.packetfence.org)
On 2015-06-10 5:23 PM, Tim DeNike wrote:
OK.. I can't seem to figure out how to PULL data from packet fence
with the web services API.
I can trigger events with it like so:
curl -v -H "Content-Type: application/json-rpc" -H "Request:
register_node" -X POST -d
'{"params":["mac","00:11:22:33:44:55","pid","timdenike","category","business"],"jsonrpc":"2.0","method":"register_node"}'
http://localhost:9090/
This does what you'd think.. Registers the node.
But how do I retrieve and use the "node_information" or "view_person"
api commands.
Im trying to integrate packet fence into an ISP billing/accounting
system and need to have the 2 fully talking.. Ive got it part way
done.. Just trying to fill in the gaps.
------------------------------------------------------------------------------
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users
* French - detected
* Afrikaans
* Albanian
* Arabic
* Belarusian
* Bulgarian
* Catalan
* Chinese
* Chinese (Simplified)
* Chinese (Traditional)
* Croatian
* Czech
* Danish
* Dutch
* English
* Estonian
* Filipino
* Finnish
* French
* Galician
* German
* Greek
* Hebrew
* Haitian Creole
* Hindi
* Hungarian
* Icelandic
* Indonesian
* Irish
* Italian
* Japanese
* Korean
* Latvian
* Lithuanian
* Macedonian
* Malay
* Maltese
* Norwegian
* Persian
* Polish
* Portuguese
* Portuguese (Portugal)
* Romanian
* Russian
* Serbian
* Slovak
* Slovenian
* Spanish
* Swahili
* Swedish
* Thai
* Turkish
* Ukrainian
* Vietnamese
* Welsh
* Yiddish
* Afrikaans
* Albanian
* Arabic
* Belarusian
* Bulgarian
* Catalan
* Chinese
* Chinese (Simplified)
* Chinese (Traditional)
* Croatian
* Czech
* Danish
* Dutch
* English
* Estonian
* Filipino
* Finnish
* French
* Galician
* German
* Greek
* Hebrew
* Haitian Creole
* Hindi
* Hungarian
* Icelandic
* Indonesian
* Irish
* Italian
* Japanese
* Korean
* Latvian
* Lithuanian
* Macedonian
* Malay
* Maltese
* Norwegian
* Persian
* Polish
* Portuguese
* Portuguese (Portugal)
* Romanian
* Russian
* Serbian
* Slovak
* Slovenian
* Spanish
* Swahili
* Swedish
* Thai
* Turkish
* Ukrainian
* Vietnamese
* Welsh
* Yiddish
<javascript:void(0);><#>
------------------------------------------------------------------------------
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users