Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 678 Bytes

File metadata and controls

36 lines (28 loc) · 678 Bytes

API

::: info This page is work in progress. A lot of information will be missing. :::

Examples

Examples can be found in a separate repo.

Upgrading from username/password authentication to access/secret keys

Replace the following code:

// Prepare POST query
$postvars = [
	"user" => $hst_username,
	"password" => $hst_password,
	"returncode" => $hst_returncode,
	"cmd" => $hst_command,
	"arg1" => $username,
];

With the following:

// Prepare POST query
$postvars = [
	"hash" => "access_code:secret_code",
	"returncode" => $hst_returncode,
	"cmd" => $hst_command,
	"arg1" => $username,
];