Friday, February 25, 2011

Test Shindig server integration with cURL tool

Test RPC service:

curl -H "Content-Type: application/json" --data-binary '[{method:"gadgets.metadata", id:"test", params: {ids:["http://www.google.com/ig/modules/datetime_v2/datetime_v2.xml"], container:"default", language:"en", country:"US", view: "canvas"}}]' http://localhost:8080/gadgets/api/rpc

curl -H "Content-Type: application/json" --data-binary '[{method:"system.listMethods"}]' http://localhost:8080/gadgets/api/rpc


Test Metadata service:

curl -H Content-Type=application/json --data-binary '{context:{container:"default"}, gadgets:[{url:"http://www.google.com/ig/modules/datetime_v2/datetime_v2.xml",language:"en", country:"US"}]}' http://localhost:8080/gadgets/metadata

No comments:

Post a Comment