Changes

Jump to navigation Jump to search
650 bytes added ,  12:11, 22 October 2012
Line 245: Line 245:     
This kind of access might be useful when local applications cannot use DBus sugar-datastore API, e.g., [[wikipedia:Javascript|Javascript]] applications.
 
This kind of access might be useful when local applications cannot use DBus sugar-datastore API, e.g., [[wikipedia:Javascript|Javascript]] applications.
 +
 +
== Usage ==
 +
 +
Being a [[Wikipedia:Restful|RESTful]], Sugar Network API can be used in any way how regular HTTP requests can be handled. But for command-line access, there is a handy tool, {{Code|sugar-network}}, that takes care about Sugar Network specific like lunching local API (if it is not already available) to get access to [[#Local_access|local data]].
 +
 +
The sugar-network command-line format is, call {{Code|sugar-network --help}} for more detailed info:
 +
 +
sugar-network GET|POST|PUT|DELETE ''PATH'' ''ARG=VALUE'' [..]
 +
 +
* {{Code|PATH}}, is an url path;
 +
* {{Code|ARG<nowiki>=</nowiki>VALUE}}, request arguments as they being passed to in url.
    
== Getting involved ==
 
== Getting involved ==
    
{{:Sugar_Network/Feedback}}
 
{{:Sugar_Network/Feedback}}

Navigation menu