General help

http call to register users

 
Picture of LIsa Cox
http call to register users
 

Hi wonderful moodlers,

I once knew but would someone please remind me how to register users via a call. I take payments on my main site, and have their name and email, but I need to send them to my moodle site, which in a sub directory on my main site, register them, and drop them in the course.

I know that this information must be in the header.

How do I enable this enrollment method in moodle?

What does it expect in the call?

Thank you so much for your love for moodle.

Lisa

 
Average of ratings: -
Picture of Howard Miller
Re: http call to register users
Core developersDocumentation writersParticularly helpful MoodlersPlugin developers

Are you asking how you create a url that does all of that in one hit?

I don't believe you can. There may be an optional plugin to do this but I couldn't find anything. 

 
Average of ratings: -
Picture of LIsa Cox
Re: http call to register users
 

What I am trying to do is take payments on my main site, then enroll them in that course on moodle.

What would you recommend as a process to do this?

And thank you for your response!


 
Average of ratings: -
Picture of Howard Miller
Re: http call to register users
Core developersDocumentation writersParticularly helpful MoodlersPlugin developers

Firstly what software does your "main site" use? Something might well exist.

Failing that, custom code will need to be written. This can all be done using Moodle's Web Services. See Using_web_services

 
Average of ratings: -
Picture of LIsa Cox
Re: http call to register users
 

It a wordperss blog. PHP is no stranger to me. I swear I read somewhere that this can be done with one call. Just trying to find the format again.

Thank you for your time.

 
Average of ratings: -