Hi i would like to ask if its exists some webservices for elgg , im making an android application for it ( android 4.3 , elgg 1.8 ) . Till now i have already made the log in but i cannot keep the "gate" open so i loose the $session and i cannot continue with talking any data.I have made a plugin for elgg and my android application talks(json) to it and i can use elgg functions to log in or get river etc.... Does somebody know if i can find some webservices(to be easier) or how can i continue with the way i already started ?
with my plugin i can only take the public data like "river" but everything private returns false or null , i have done log in before but the session is already lost.
Thanks in advance, George
This discussion is closed and is not accepting new comments.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
Hi George,
To begin have a look at http://docs.elgg.org/wiki/Web_Services
We @ ColdTrick have created a webservices pack you can start to use (this is used in some Android/iOS apps). You can find the webservices pack here: https://github.com/ColdTrick/ws_pack
I addition to the above, take a look at one more resource https://github.com/josealopezpastor/ElggAndroidClient also.
Thanks a lot for the quick response . I want to make a last question because i am a bit confused with the way i should use this Web_services.
I should make again some plugin that will use the functions of that Web_services or it exists some kind of calls like
http://mysite/login/username/password that i can do http call from my android aplication and take the response , after i would have install this Web_services in the pluggins of elgg and make it activated ?
look @ http://docs.elgg.org/wiki/Web_Services#User_authentication
you need to call, http://yoursite.com/services/api/rest/xml/?method=auth.gettoken&username=<your username>&password=<your password>
this will give you a token you can use in the other api calls that require authentication. Please keep in mind this token does expire.
Thanks again !! Yes thats understadable and its working but what about all the other calls , how can i know them ? like if i want to take all the data of the user profile or the profile picture or to post something in a wire etc ?
@Giorgos Look at README in https://github.com/Tachyon/Elgg-Web-Services
you can get a list of all the available api call on your site by calling http://yoursite.com/services/api/rest/xml/?method=system.api.list
Can anyone explain me how toWe @ ColdTrick have created a webservices pack you can start to use (this is used in some Android/iOS apps). You can find the webservices pack here: https://github.com/ColdTrick/ws_pack for the desktop application
i'm using the elgg version of 1.9 but while hitting the url i'm getting the 'page not found error' and i'cant able to generate the token it self.
-please reply soon
[Moderator: this comment was off-topic. It was moved to its own topic.]