Making a Request

Each of the methods of the Fusion Connect Broker API can be called either directly using REST, or by using JavaScript. To call an API method using REST, you must make a request using HTTPS to the URL:

https://server.name/sc-nexus-api/rest/broker/METHOD

The "server.name" in this template would be replaced with the name of the application server hosting the account you wish to access over the API , and "METHOD" would be replaced with the name of the method you wish to call. To make requests to Fusion Connect using JavaScript, you must first add the following script:

<script src="https://server.name/sc-nexus-api/js/nexus-api.js"></script>
var api = new NexusAPI("server.name");

This script creates an instance of a NexusAPI object, which can then invoke the methods of the Broker API. Once again, "server.name" would be replaced with the name of the actual application server.