User Tools

Site Tools


api:auth

Authentication

To authenticate to the API endpoints you need to define two header entries in every request

  • CL-Username
  • CL-Password

and provide your credentials in plain text - as we use HTTPS they get encrypted automatically on their way through the net.

Example using jQuery

$.ajax("https://campaign-logger.com/gateway/rest/public/logs", {
	dataType: "json",
	headers: {
		"CL-Username": "...",
		"CL-Password": "..."
	},
	type: "GET"
}).then(function (data, status, jqXHR) {
	// success
	alert("Found " + data.length + " log(s)");
}, function (jqXHR, status, error) {
	// failure
	alert("Error: " + error);
});
api/auth.txt · Last modified: 2016/09/18 12:07 by Jochen Linnemann