The Share is an API specific just for get the info of the sharing files/folders and also to share them.
To obtain the list of files/folders of a directory you must to use the access through the webdav interface that it is localted under the path remote.php/webdav/ of your server.
For example to get the list of files of the root folder you can use this command:
curl -X PROPFIND -u user:password "http://yourserver.com/owncloud/remote.php/webdav/"
Also you have more http methods to make more things:
- PROPFIND = get the list of files/folders
- MKCOL = create folder
- DELETE = delete file/folder
- MOVE = move or rename a file or folder
- PUT = upload file
- GET = download file