Support #7008
Existing WebServices
0%
Description
Hi,
I wanted to know the specification of existing webservices in website chamilo, to use it for a mobile application ( entries, output, behaviour).
Do you have any documentation about that ?
Regards
Florian.
History
Updated by Julio Montoya almost 7 years ago
- Category changed from Documents to Web services
The current webservices in Chamilo 1.9.x are located in our repository:
https://github.com/chamilo/chamilo-lms/tree/1.9.x/main/webservices
Is also possible to reach them in our demo platform (admin/admin) for example:
https://stable.chamilo.org/main/webservices/registration.soap.php
Updated by florian fournier almost 7 years ago
Thanks,
I saw the source code, and I wanted to know, how can I access to the information about the contained of one course/excercice ( question, audio, video) since the webservice ?
I need this information to display the question and other component of the excercice.
Thanks.
Florian.
Updated by Julio Montoya almost 7 years ago
- Status changed from New to Needs more info
- Assignee set to Yannick Warnier
As far as I know we don't have code in the webservices that deals with the exercises and learning path creation/creation.
If you want that behaviour new code need to be added. Maybe Yannick could provide more feedback about this?
Updated by Yannick Warnier almost 7 years ago
- Assignee deleted (
Yannick Warnier)
Sorry, I'm just discovering this task now. Florian, could you find more info? Are you still looking?
There are other scripts available in main/webservices/, but the most useful would probably be to check github.com/ywarnier/ilearning/ as it is code meant for consuming content through a mobile app
Updated by Yannick Warnier almost 7 years ago
We can either wait for 2.0 and implement it as a Symfony component (I think this would be waaay too long to wait until then) or use one of the following libraries:
- https://code.google.com/p/oauth2-php/source/browse/#hg%2Flib
- http://oauth.net/2/ (list of PHP implementations)
- http://php.net/manual/en/book.oauth.php (PECL extension)
- https://github.com/Lusitanian/PHPoAuthLib
Then the next step would be to implement REST services.
There is already a working example of that here: https://github.com/ywarnier/ilearning/blob/master/chamilo/ilearning/thrift/metodos.class.php but the code is disorganized and not self-documented enough in order to understand why the whole Thrift package is used (and possibly hacked) and what it does exactly.
Updated by Yannick Warnier almost 6 years ago
- Status changed from Needs more info to Assigned
- Assignee set to Angel Quiroz
- Priority changed from Normal to Low
Updated by Yannick Warnier almost 6 years ago
- Status changed from Assigned to New
- Assignee deleted (
Angel Quiroz) - Target version changed from 1.10.0 to 2.0