Quantcast
Channel: Web services
Viewing all 2361 articles
Browse latest View live

Re: How to configure web services: tokens

$
0
0
by Frances Angulo.  

UPDATE: 

Running the internal test, I am also getting: 

<EXCEPTION class="moodle_exception">

<ERRORCODE>invalidtoken</ERRORCODE>

<MESSAGE>Invalid token - token not found</MESSAGE>

</EXCEPTION>

I cannot resolve the URL:  http://www.mymoodlesite.com/webservice/rest/server.php?wstoken=[token]


unenrol users enrolled via web services

$
0
0
by Nick Freeman.  

We have been using web services to create groups and enrol users for a few years.  We also use the web services to unenrol users too.  Or so we thought.

Once a user should no longer have access to a course, the web service runs and removes the relevant row from mdl_role_assignments table.  However, the equivalent row remains in the mdl_user_enrolments table. 

When we call the web services to enrol users we call both functions core_role_assign and enrol_manual_enrol_users.  However, for unenrolments, there is only the core_role_unassign function. 

How can we remove the user enrolment as well?

(We are also creating groups and putting users into them.  If we don't use the enrol_manual_enrol_users function, it complains that we can't put them into the group because they're not enrolleed on the course).

Any help or guidance would be appreciated. 

thanks
Nick

Call a web service from Moodle

$
0
0
by Hélène Bouley.  

I would like to call some external web services based on some Moodle event:

send an ok to the academic system when a student got a 100% to some special test.

I'm just begin to think about. I've still built a web service with the Moodle API and it works fine.

But it's not really clear for me if it possible to integrate the reverse so easily.


Any ideas are welcome,

thanks in advance,

Re: unenrol users enrolled via web services

$
0
0
by Reghyna Rodriguez.  

In the function enrol_manual_enrol_users in your web service send the parameter "suspend" equal to "1" value

Re: Quiz web services proposal

$
0
0
by Farhan Karmali.  

Is there a tracker opened for this ? Could someone provide guidance on how to start this apart from the documentation .. Am really eager to develop this

$USER variable in moodle web service

$
0
0
by Nir Karniel.  

Hi all,

 

I'm having some troubles using web service mod_assign_get_assignments which uses method

get_assignments.

 

As I understand this method takes the logged in user's session by using  $USER->id variable and returns list of all his assignments.

 I'm sending as parameter capabilities array is empty.

courseids: array of users' list of courses by taken from web service core_enrol_get_users_courses which works fine. 

Even thought I'm logged in as a simple user to moodle and calling the web service on the same browser, it always refers to the admin's user id and i'm getting  "User is not enrolled or does not have requested capability"

 

Thanks for replying

 

 

WSOD when trying to access soap webservice

$
0
0
by Lluís Forns Puigmartí.  

When I try to access webservice using 

http://mydomain/webservice/soap/server.php?wstoken=mytoken

I just get a blank screen, I checked PHP errors and I get 

[30-Oct-2014 12:46:41 UTC] PHP Fatal error:  Cannot redeclare class webservices_struct_class_000026 in /.../public_html/webservice/soap/locallib.php(297) : eval()'d code on line 5

I checked phpinfo() on both server and client domain and soap is enabled; why is it failing?


Thanks

Sessions and webservices

$
0
0
by Chris Clark.  

Hey all,

I'm wondering if anyone can help me understand sessions within a web-service.

In my case we have a web-service that gets called by an external script, it then logs a user in and during the duration of the web-service we can carry out any operations a logged in user could.

I'm wondering does the session created for this user end immediately when the web-service finishes executing?

would it be possible to have the script that calls the web-service create the MoodleSession cookie and have the user carry on the session?

Any info regarding sessions and web-services is much appreciated

Cheers,
Chris Clark


Calling Moodle Web Services from Perl

Re: unenrol users enrolled via web services

$
0
0
by Nick Freeman.  

thank you very much Reghyna for responding.  We'll give that a try - we hadn't realised that function could accept that parameter.


Re: Quiz web services available as local plugin

$
0
0
by Hamdy Ahmed.  

hi Harry,

Can we get this plugin ?

MDL-47776 Add core_backup_restore_activity webservice

$
0
0
by Daniel Neis Araujo.  

Hello, everybody


i have created MDL-47776 to include a webservice to restore activities from single activity backup files.

If you like it, please vote for it on tracker.

Any feedback is welcome =)


Kind regards,

Daniel

Re: Ability to fetch Course Summary file via core_course_get_courses webservice

$
0
0
by Nitin Jain.  

I see, And similar problems i am facing..

Someone from Moodle HQ should have answer to our question, but looks like they have missed this discussion.



Re: How to login using Moodle User from REST Web Service

$
0
0
by jai sankar.  

Hi,

   I think there is no option to login user. May we use token authentication as authentication of user login. i.e using token.php

Jai

rest web service URL

$
0
0
by elarbi mannou.  

if we choose to implement a restful web service in ejb module not in a web module.how to get url of this ws to invoke it.before we use http://localhost:port /project/ws/method but now i implement ws like any ejb how to call it.


Re: How to login using Moodle User from REST Web Service

$
0
0
by elarbi mannou.  

i think there is somethinh called rest API for authentification

Re: unenrol users enrolled via web services

Re: enrol_manual_enrol_users limit

$
0
0
by James Henestofel.  

Can someone who uses this function tell me how they are doing this.  I'm also using xml-rpc so I don't know if that has anything to do with it.

web servises in moodle 1.9

$
0
0
by An Da.  

i'm trying to enable web services (rest, soap) in moodle 1.9 but i cant find something about, 

does anybody know (remember) how to do that????


Re: web servises in moodle 1.9

Viewing all 2361 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>