[owncloud-devel] ownCloud 7.0 and External API

Ben C owncloud at nosolutions.com
Thu Jan 29 18:02:58 GMT 2015

Hi all,

I'm the developer for ownNote (Evernote replacement app for ownCloud) 
and am beginning to implement the Android and iOS interfaces. I've been 
trying to identify the best way to integrate via API calls from a 
PhoneGap application to the server, and I think I have found that in the 
6.0 documentation here: 

My two part question:

1) Is this the appropriate way to integrate in 7.0 and beyond? This 
docuemtnation doesn't seem to exist for 7.0, except in the EE 

2) If so, I'm running into some issues setting things up. I'm getting:

query, please check the syntax. API specifications are here: 
debug output:
http request method: GET
http request uri: /owncloud/ocs/v1.php/apps/ownnote

... as a response. My query is to:


My routes.php:


namespace OCA\OwnNote\AppInfo;

     function($urlParameters) {
       return new \OC_OCS_Result($data);

$application = new Application();

$application->registerRoutes($this, array('routes' => array(
         array('name' => 'page#index', 'url' => '/', 'verb' => 'GET'),
     array('name' => 'page#do_echo', 'url' => '/echo', 'verb' => 'POST'),


And my ajax/api_getnotes.php, which just returns "Test" to try to get 
things working:



echo "Test";


Can someone point me in the right direction, or to a sample of fully 
functioning external API code?


More information about the Devel mailing list