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

Re: Getting redirected to login page when using REST Web Service

$
0
0

by Agustín Rodríguez.  

Just in case that someone has the same problem: I was trying to use the IP address of the server as a hostname and it seems that (at least my Moodle installation) Moodle was redirecting me to the hostname like address. Changing the IP Address for the hostname in the [hostname] part of the url solved my problem.


Regards! 


How to know course is a free one or paid using webservice?

$
0
0

by Crazy Coder.  

In an API I want to get the courses that are paid courses. I have read the API documentation, the API 'core_course_get_courses' doesn't provide the information that whether it is a paid course or self-enrollable course (free course). How can I know whether the course is a free one or paid one using API?

Re: How to know course is a free one or paid using webservice?

API function not available

$
0
0

by Aniket Sankpal.  

Hi,

Is there any web API available to fetch all the quiz data.

I know some quiz API functions are already available but none of them give the actual quiz data. I want all  question and answers included in the quiz.

Can anyone suggest how I can get this data through API?

Also is there any API available to authenticate user login details?

Like when we pass username and password to it, It will say true or false?


webservice don't work after update

$
0
0

by Tascone Gaetano.  

I justperformedaupgrade from version2.9.2to version3.2.1.We use differentwbservicetoexternal siteand since thensomewebserviceno longer work,for examplecore_enrol_get_enrolled_usersreturns nullwhenfirstreturnedcorrectlyyour subscribersto the course.


Re: webservice don't work after update

$
0
0

by Tascone Gaetano.  

used:

http://[hostname]/webservice/rest/server.php?wstoken=[token]&wsfunction=core_enrol_get_enrolled_users&moodlewsrestformat=json&courseid=[idcourse]


Web Service with rebound

$
0
0

by Gaultier Tevz.  

Hi, 

I'm really new to Web Services, and I have a little question for you champions ! 3b63d1616c5dfcf29f8a7a031aaa7cad.gif 

So, I have an URL to get informations in JSON, this URL is something like : http://10.200.200.10/webservice/date/28-02-2017/ 
When I make a cURL in PHP on this URL, I get the JSON formatted message, so that works. 

But for now, I have another constraint : 

should have a script between the first PHP script and the final URL. So, I'll have to call something like http://20.500.500.20/get-ws/, which has to get http://10.200.200.10/webservice/date/28-02-2017/

How could I get, on my first PHP script, the result of the final API if there is another script between ? 

I tried to do a cURL with the first PHP that calls the second script which makes itself another cURL, but it doesn't work ! 
How should I do ? 

Thanks for your answers 3b63d1616c5dfcf29f8a7a031aaa7cad.gif

workflowstate for mod_assign_save_grades

$
0
0

by Joscha Zander.  

Hey folks,

What are valid values for 'workflowstates" when using "mod_assign_save_grade" and "mod_assign_save_grades"? 

I cannot find anything usefull in the webservice api documentation  like a complete list... sad

best regards


core_course_get_courses just course id and shortname

$
0
0

by Jack Russell.  

Hi 

I set up a webservice with core_course_get_courses which is working fine.

Is there a possibility to tetrieve only some fields, e.g. course id and shortname, instead of everything?

Thanks

update course section description/title

$
0
0

by Joscha Zander.  

Hi folks,

is it possible to update course sections (title and/or description) or topic names programmatically over webservice api? I stumbled across core_update_inplace_editable - but the documentation is so poor i cannot find any valid string values for 'component' and 'itemtype'.

My call with core_course_get_contents returns all contents of my course not containing anything useful to fill the string values mentioned above...

Re: core_course_get_courses just course id and shortname

$
0
0

by Joscha Zander.  

are you working on webservice api with REST protocol activated?
You can easily extract desired fields from the server response. It would help if you paste your code in here...

best regards

Re: core_course_get_courses just course id and shortname

$
0
0

by Jack Russell.  

I got no code. I'm just a user...

Is there an option for core_course_get_courses to restrict the output, sth like &wsfunction=core_course_get_courses&JUSTTHISFIELD?

Re: core_course_get_courses just course id and shortname

$
0
0

by Joscha Zander.  

Not that i know. How are you calling the wsfunction? In a Webbrowser?

Re: core_course_get_courses just course id and shortname

$
0
0

by Jack Russell.  

Yes, in a Webbrowser. Is there any other way on a windows machine?

Re: core_course_get_courses just course id and shortname

$
0
0

by Joscha Zander.  

When you are just a user - why are you calling moodle webservices like that? Why don´t you simply use the moodle page? What are you trying to accomplish?


Re: core_course_get_courses just course id and shortname

Can anyone here help me in integration peoplesoft with moodle

$
0
0

by Michel Maher.  

I want to integrate peoplesoft with moodle over webservice to be able to transfer date from peoplesoft to moodle 
Please I need the solution for this problem Asap

Thanks in advance

API Design for Moodle and Opensis

$
0
0

by tamrat tadesse.  

I am researcher in computer science domain.

How can I design common API for moodle and opensis?

Re: API Design for Moodle and Opensis

$
0
0

by Jason Hardin.  

Doesn't this already exist in the form of ims lis2?


Moodle would need an enrollment and authentication plugin to support this standard.


Another option is one roster.

Web service API for fetching course price , start date, end date.

$
0
0

by Talat Mirza.  


We are developing an app-based extension of the Moodle LMS with some additional, custom requirements.This Moodle integration will comprises student registration, enrollment, and sync of all activities, sections, courses, and learning plans. In the application we designed, there are two sections:- one section focuses on user's enrolled courses and the other is a course catalog section that displays all courses except the enrolled ones. The issue we faced are:

1) In course catalog section, we were unable to get data for Course Price from the web service API's. 

2) In user's enrolled courses section, we need data for start date and end date of a particular enrolled course from web service API.

For fetching user's enrolled courses we've used  core_enrol_get_users_courses API . The response data of this API doesn't give data for the Start and End date.

For fetching all courses information in course catalog section, we've used core_course_get_courses_by_field API. The Response doesn't give data for course price.

Viewing all 2361 articles
Browse latest View live


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