creating your first web service integration from core apis · corewebservice calls are highly...
TRANSCRIPT
![Page 1: Creating Your First Web Service Integration From Core APIs · CoreWebService calls are highly focused on Mobile App functionality. Getting started Define the integration User Management](https://reader033.vdocuments.net/reader033/viewer/2022052012/60287a991b440425a0453bb1/html5/thumbnails/1.jpg)
Creating Your First Web Service
Integration From Core APIs
![Page 2: Creating Your First Web Service Integration From Core APIs · CoreWebService calls are highly focused on Mobile App functionality. Getting started Define the integration User Management](https://reader033.vdocuments.net/reader033/viewer/2022052012/60287a991b440425a0453bb1/html5/thumbnails/2.jpg)
The REST-like Moodle WebServicesAPI
REST-like not RESTful All calls are POST
Return 200 HTTP statuses, even on failure
Functions are parameters instead of URIs
Core WebService calls are highly focused on Mobile App functionality
![Page 3: Creating Your First Web Service Integration From Core APIs · CoreWebService calls are highly focused on Mobile App functionality. Getting started Define the integration User Management](https://reader033.vdocuments.net/reader033/viewer/2022052012/60287a991b440425a0453bb1/html5/thumbnails/3.jpg)
Getting started
Define the integration User Management
Courses
Enrollments
Completion??
![Page 4: Creating Your First Web Service Integration From Core APIs · CoreWebService calls are highly focused on Mobile App functionality. Getting started Define the integration User Management](https://reader033.vdocuments.net/reader033/viewer/2022052012/60287a991b440425a0453bb1/html5/thumbnails/4.jpg)
Investigate
API Documentation Site administration -> Plugins -> Web services -> API Documentation
![Page 5: Creating Your First Web Service Integration From Core APIs · CoreWebService calls are highly focused on Mobile App functionality. Getting started Define the integration User Management](https://reader033.vdocuments.net/reader033/viewer/2022052012/60287a991b440425a0453bb1/html5/thumbnails/5.jpg)
Create
External Services Site administration -> Plugins -> Web services -> External services
![Page 6: Creating Your First Web Service Integration From Core APIs · CoreWebService calls are highly focused on Mobile App functionality. Getting started Define the integration User Management](https://reader033.vdocuments.net/reader033/viewer/2022052012/60287a991b440425a0453bb1/html5/thumbnails/6.jpg)
Add Functions
Functions Site administration -> Plugins -> Web services -> External services ->
Functions
![Page 7: Creating Your First Web Service Integration From Core APIs · CoreWebService calls are highly focused on Mobile App functionality. Getting started Define the integration User Management](https://reader033.vdocuments.net/reader033/viewer/2022052012/60287a991b440425a0453bb1/html5/thumbnails/7.jpg)
Create Your WebServiceUser
Add a new user Site administration -> Users -> Accounts -> Add a new user
![Page 8: Creating Your First Web Service Integration From Core APIs · CoreWebService calls are highly focused on Mobile App functionality. Getting started Define the integration User Management](https://reader033.vdocuments.net/reader033/viewer/2022052012/60287a991b440425a0453bb1/html5/thumbnails/8.jpg)
Add Your User to Your WebService
Authorized users Site administration -> Plugins -> Web services -> External services ->
Authorized users
![Page 9: Creating Your First Web Service Integration From Core APIs · CoreWebService calls are highly focused on Mobile App functionality. Getting started Define the integration User Management](https://reader033.vdocuments.net/reader033/viewer/2022052012/60287a991b440425a0453bb1/html5/thumbnails/9.jpg)
Create a Token
Create Token Site administration -> Plugins -> Web services -> Manage tokens
![Page 10: Creating Your First Web Service Integration From Core APIs · CoreWebService calls are highly focused on Mobile App functionality. Getting started Define the integration User Management](https://reader033.vdocuments.net/reader033/viewer/2022052012/60287a991b440425a0453bb1/html5/thumbnails/10.jpg)
Test your work
Using Postman
![Page 11: Creating Your First Web Service Integration From Core APIs · CoreWebService calls are highly focused on Mobile App functionality. Getting started Define the integration User Management](https://reader033.vdocuments.net/reader033/viewer/2022052012/60287a991b440425a0453bb1/html5/thumbnails/11.jpg)
Expanding your work
Using The Demo Mobile App + Google Chrome Network Inspector https://mobileapp.moodledemo.net/
![Page 12: Creating Your First Web Service Integration From Core APIs · CoreWebService calls are highly focused on Mobile App functionality. Getting started Define the integration User Management](https://reader033.vdocuments.net/reader033/viewer/2022052012/60287a991b440425a0453bb1/html5/thumbnails/12.jpg)
www.ethinkeducation.com