The First Face++ JavaScript Program

Click here to download JavaScript SDK. Have a look at "demo.html". Notice that you should add jQuery if you want to run it using an old version browser.   Set up basic page framework.
<!DOCTYPE html>
        <meta charset="UTF-8">
        <title>Face++ JavaScript SDK</title>
        <!-- For output results -->
        <pre id="response"></pre>
        <!-- Import libraries -->
        <script type="text/javascript" src=""></script>
        <script type="text/javascript" src="facepp-sdk.min.js"></script>
        <script type="text/javascript">
            // Your JavaScript code for the application
Initialize API Object.
var api = new FacePP('0ef14fa726ce34d820c5a44e57fef470',
                     { apiURL: '' });
Call the Detection request.
api.request('detection/detect', {
  url: ''
}, function(err, result) {
  if (err) {
    $('#response').text('Load failed.');