Moodle Server Expert

Job ID: 36679968

Budget: $25 – $50 USD

Need help in setting up an API for external access to Moodle. Currently getting the following:
I get a HTTP 200 but get HTML back.
I sent this JSON:
NOTE: We have removed some of the information with “xxxxxxxx”.
POST https://xxxxxxxx.mobiuslearning.com/login/index.php
Body: { function: 'Ping', token: '3e2061d311d01c248d5166d38535fc30' }
I get this back in the body:

<html dir="ltr" lang="en-us" xml:lang="en-us">
<head>
<title>xxx: Log in to the site</title>
<link rel="shortcut icon" href="https://xxxxxxxx.mobiuslearning.com/theme/image.php/_s/boost/theme/1668456326/favicon" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="moodle, GARP: Log in to the site" />
<link rel="stylesheet" type="text/css" href="https://xxxxxxxx.mobiuslearning.com/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple.css" /><script id="firstthemesheet" type="text/css">/** Required in order to fix style inclusion problems in IE with YUI **/</script><link rel="stylesheet" type="text/css" href="https://xxxxxxxx.mobiuslearning.com/theme/styles.php/_s/boost/1668456326_1/all" />
...
Related categories: PHP CSS MySQL Moodle JSON