Follow the instructions in this section to create the environment in which you can explore the REST API. 
 
 This example uses the Campaign Conversion app in a local installation of Xpress Insight. 
 
  To explore the file structure, and install 
 node.js, perform the following steps: 
 
 
  -  In Windows Explorer, navigate to <Xpress Install Directory>\examples\insight\rest_api\rest-client-example\.  
   
    The three files, 
     package.json, 
     rest-client-example.js, and 
     dmp-rest-client-example.js, are contained in this directory—This example uses 
     package.json and 
     dmp-rest-client-example.js. 
      The package.json file contains some Node.js configuration—specifically calling for the request and prequest modules. request is a simplified HTTP client with HTTPS support, while prequest offers HTTP requests with promises. You can investigate them further at http://github.com/request/requestandhttps://github.com/alyssaq/prequestrespectively.
  
     {
  "name": "rest-client-example",
  "version": "1.0.0",
  "author": "FICO",
  "devDependencies": {
    "prequest": "^1.0.0",
    "request": "^2.75.0"
  }
}
 
  The dmp-rest-client-example.js file contains the example code itself.  
-   Open a Command Prompt window, navigate to the rest-client-example directory.  
-  Type npm installand press Enter to obtain the prerequisites and download them into node_modules.
    The 
    node_modules folder is added to your 
    rest-client-example directory. 
    
 
                
                    © 2001-2024 Fair Isaac Corporation. All rights reserved. This documentation is the
                    property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not
                    convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except
                    solely for internal evaluation purposes to determine whether to purchase a license to the software
                    described in this documentation, or as otherwise set forth in a written software license agreement
                    between you and FICO (or a FICO affiliate). Use of this documentation and the software described in
                    it must conform strictly to the foregoing permitted uses, and no other use is permitted.