Method SetLicenseKey

Summary

Set the license key used to authenticate the service.

Remarks

Central Square will provide you with an application ID and key. These must be sent as HTTP header data to each service request. The Fusion Services will read the application ID and key from the header and validate it before processing the request.

Add the SetLicenseKey method into your application and call it before sending a request.

Replace the "idFromCentralSquare" and "keyFromCentralSquare" with your license key values.

Sample Responses

Sample Code

using System.Net;

static class Common
{
public static void SetLicenseKey(WebClient wc)
{
wc.Headers.Set("X-APPID", "idFromCentralSquare");
wc.Headers.Set("X-APPKEY", "keyFromCentralSquare");
}
}