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

Re: Ability to fetch Course Summary file via core_course_get_courses webservice

$
0
0
by Gabriel Souza.  

Same issue here!!!


Re: mod_forum_get_discussion doesn't return discussions content

$
0
0
by Gabriel Souza.  

Thiago, even the subjects are not shown for me.

Do you mind to share the URL you are using?

Re: mod_forum_get_discussions

$
0
0
by Gabriel Souza.  

Thiago... I have followed your suggestions and I am getting the following:

<EXCEPTION class="webservice_access_exception">

<ERRORCODE>accessexception</ERRORCODE>
<MESSAGE>Access control exception</MESSAGE>
</EXCEPTION>

Re: Ability to fetch Course Summary file via core_course_get_courses webservice

$
0
0
by Nitin Jain.  

Did you get any work around Gabriel ?


Can any help?

Re: Ability to fetch Course Summary file via core_course_get_courses webservice

$
0
0
by Gabriel Souza.  

Hi Nitin

I saw a post you made related to the forum web service issue and I am facing the same. The core_course_get_courses I am not using. The ones I use is:

Get Course Content:
core_course_get_contents

And to get the course list from a specifc user:
moodle_enrol_get_users_courses


To get the information I am using Ajax.

Let me know if you need any additional help!

Regards

Gab



moodle_mobile_app + Forum

$
0
0
by Gabriel Souza.  

Hi Community


Is there a way to add the forum webservices to moodle_mobile_app?

I could create a new external service with forum privilegies, but the token is different from the moodle_mobile_app, so I am not able to load the forum information in my app.

As alternative, is there a way to load in case the user has, all his tokens?


Best regards

Gabriel

Re: Ability to fetch Course Summary file via core_course_get_courses webservice

$
0
0
by stéphane gouriou.  

Hi. I'm facing the same issue right now..

It's harmful that we cannot get every fields related to a course via a dedicated and native webservice. I'm building a full "off moodle" gui for mobile, and I'm realizing that I will need to implement my own webservices very soon, even though there are a lot of native webservices, and I only need simple datas for my gui (like the url of the summary file...).



External Database User - Web Services

$
0
0
by Aaron Leggett.  

Hey Everyone,

We are developing a web services plugin at the moment which is working fine when being used by a user on the site. We also have the external database authentication method enabled as our users are based out of a different web-application. 

The issue we are having is that the users who authenticate through external database authentication plugin cannot access or use any of the web-services. Has anyone experienced this before or can shed some light on this.


Cheers


Access to activity report

$
0
0
by Ignacio Suarez.  

Hi!! I'm developing a web app and I need external access(web service) to the activity report of the students, the same activity report viewed here:  

*MOODLEURL*/report/log/user.php?id=userid&course=courseid&mode=all


I haven't seen any function for this for the API REST.

I also have seen the log is stored in this table ' mdl_logstore_standard_log' 

My question is how can I access this data with a web service??? Is not possible?


Thank you.

Login with facebook problems

$
0
0
by Mohit farswan.  

Getting login with facebook problem in my simple mp3 downloader android app. It is getting crash everytime. I dont know if it is Facebook SDK problem. Please let me know if someone can help me.

Password

$
0
0
by Helson Araújo.  

How i can retrieve the password from a user using webservice?

I'm using core_user_get_users_by_id this returns all fields except password.

How i can change it?

Thanks.

Re: Password

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

$
0
0
by Aaron Leggett.  

at the moment there isnt a way to login through a web services plugin. 

Re: Web service image profile

$
0
0
by Aaron Leggett.  

Hey Andrea,

I did run into this issue a while back where we where updating the profile picture from a Tablet App. I've attached the web-service side of the code below for you to look through.

Basically I base64 encoded the image before passing it to the web-service. Not the best way to do it but maybe you will be able to advance from the code I am using below.


if($USER->id != $userid){
    return array('msg'=>'CannotUploadAnotherUsersPicture');
    //throw new moodle_exception('CannotSendSupportRequestAsOtherUser');
}

require_once('../../lib/gdlib.php');
//change to $CFG->libdir

$filePath = $CFG->dataroot."/temp/webservices";
$fileName = $USER->id."_".time().".jpg";
$fullFilePath = $filePath."/".$fileName;

//check if webservices folder exists in temp data dir
if(!file_exists($filePath)){
    mkdir($filePath, 0777);
}

//write file to server (/webservice/xmlrpc)
$ifp = fopen( $fullFilePath, "wb" );
fwrite( $ifp, base64_decode( $base64image ) );
fclose( $ifp );

//set file as user image
$context = context_user::instance($userid);
$value = process_new_icon($context, 'user', 'icon', 0, $fullFilePath);

//remove file from xmlrpc folder
unlink($fullFilePath);

if($value == false){
    return array('msg'=>'ERROR = '.$fullFilePath);
}

return array('msg'=>$value);

Re: External Database User - Web Services

$
0
0
by Aaron Leggett.  

Resolved the issue, The user has to have logged into the Moodle before so the account is copied into the Moodle user table


Re: core_user_create_users causes "active database transaction detected during request shutdown" errors

$
0
0
by Seth Chevalier.  

Hi Dan,


Did you happen to get this worked out? I am running into the same problem.

web services with own apps

$
0
0
by pak c.  

I'm a newbie, i want to develop my own app that can perform user log-in and show their enrolled courses? How can I do?

Could not establish trust relationship for the SSL/TLS secure channel with authority

$
0
0
by imad rahmoune.  

Hello Everyone ,

I have a web service deployed on JBoss paltforme. the web        service is secured by a mutual authentication using SSL certificates. I created a  .net Client I called proxy using the WSDL of the Web service , I charge the client certificate , invoking one of the methods of the web service I have the famous error " Could not establish trust relationship for the SSL/TLS secure channel with authority. " anyone have an idea to solve this problem?

Re: Local Web Service

$
0
0
by James Ballard.  

Having the exact same issue with the same workaround. 

This is caused by a permissions check within the Web Service call that never appears to return true for an external web service user.

Have logged as MDL-47783

Yours

James

How to configure web services: tokens

$
0
0
by Frances Angulo.  

I'm attempting to connect to an external service that uses the REST api to build some reports. The error I get from the site is: 

Connection failed.Web service exception - Invalid token - token not found

When I check the System logs on Moodle, the local error is: 

Web service authentication failed with code: "invalid_token".

What configuration options am I missing? I have already done the following: 

  1. Created a specific Web Services User
  2. Verified they are authorized in the web services application but this is checked as not required
  3. Ensured that their capabilities include access to necessary services (i.e. REST) 
  4. Verified that the REST protocol is shown or enabled
  5. Created a token for the authorized and capable Web Services User
Viewing all 2361 articles
Browse latest View live


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