Hello. Pls somebody explain to me how to pass auth_token in webservice calls. I am writing a small app using jquery mobile. I can succesfully get the token ($.ajax({type:'POST',url:http://mysite/service/api/rest/json/',data:'method=auth.gettoken'&username=user&password=password',dataType:'json'.....}
This returns a token e.g:df123dfgg455666...
I try to pass this as a parameter when making calls like blog.save_post but it gives me error. The readme says i have to pass auth_token in every web service call. Don't know how. Pls any help would be appreciated. I am using webservice plugin for this
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.
Hello all, I go throught all the details here, but I am still not able to make webservice calls.
Here are my call details
$url = ...../json/?method=group.forum.save_post&api_key=XXXX";
$post_data = "title=test&desc=test&groupid=XX&auth_token=$data[result]";
Initially I call auth.gettoken and get the token and directly make a call by above url and post data.
But I could not achieve to do user auth.
Please help me out.
I found the solution. That was my issue with linking the file. Not relevant to ELGG.
Thanks for sharing
- Previous
- 1
- 2
- Next
You must log in to post replies.