We need a complete REST API in server, for PC and smartphone developing
For example:
function rest_listFriend_get($username) {
$user = get_user_by_username($username);
if (!$user) {
throw new InvalidParameterException('Bad username');
}
$result = array();
foreach ($user->getFriends() as $friend) {
array_push($result,$friend->username);
}
return $result;
}
But I couldn't find any library for this. So I wonder, is there any rest API existed ?
Please tell me if you know, thank you.
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.
- eddyfosman@eddyfosman

eddyfosman - 0 likes
- DhrupDeScoop@Dhrup2000

DhrupDeScoop - 0 likes
- Brett@brett.profitt

Brett - 0 likes
- DhrupDeScoop@Dhrup2000

DhrupDeScoop - 0 likes
You must log in to post replies.I've found this project
https://github.com/Tachyon/Elgg-Web-Services
@Eddy:
I wonder if you know just what and who you have found at that GitHub project ;-) Ckeckout http://www.saketsaurabh.in/ to know who, what... ;X
There is no official REST api for Elgg, but Elgg includes a web services framework that lets you create your own web services API, which could include a RESTful one. Here are the docs: http://docs.elgg.org/wiki/Web_Services
@All yew die-hard Elgg techies:
It should be interesting browsing the code there at
https://github.com/Tachyon/Elgg-Web-Services
-- the guy is pretty good at what he does ;-)
Code is worth studying and maybe
others can extrapolate on similar functions..