Commit e8cc0f47 authored by Joan Pascual Sana's avatar Joan Pascual Sana


parent 39ff028c
......@@ -23,4 +23,5 @@
\ No newline at end of file
\ No newline at end of file
# Wiki
The purpose of this file is to add some additional documentation of how
to use this API client.
* [Test examples](#test-examples)
* [How to upload files](#file-uploads)
* [Asynchronous functions](#asynchronous-functions)
## Test examples
Here some test examples to follow:
* [Get API instance](test/
* [Login](test/ with your location
account id and password.
* [Test unauthenticated method](test/
this test points to `/jsonApiServer/version`, accessible without auth.
* [Test authenticated method](test/
points to `/rsGxsChannels/getChannelsSummaries`, needed auth.
* Create channel
[with deprecated method](test/
and [v2 method](test/
* [Get channels info](test/
* [Add shared directory](test/
* [Create a post with files](test/
this have also an example of how to loop through channel summaries.
## File uploads
For file uploads you have two ways:
1. [Add shared directory](test/
and then play with `/rsFiles/getSharedDirectories`,
`/rsFiles/setSharedDirectories` and `/rsFiles/addSharedDirectory` to
get the SHA1 generated by RetroShare. Otherwise you can generate your
own SHA1 following the example on the test
[create a post with files](test/
2. Add an independent file playing with `/rsFiles/ExtraFileHash` and
## Asynchronous functions
Not yet supported, see .
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment