12
Creating Your First Web Service Integration From Core APIs

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

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

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

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

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

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

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

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

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

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

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

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

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

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

www.ethinkeducation.com