Airship\Engine\Hail::postSignedJSON PHP Method

postSignedJSON() public method

Internally verifies an Ed25519 signature.
public postSignedJSON ( string $url, SignaturePublicKey $publicKey, array $params = [] ) : mixed
$url string
$publicKey SignaturePublicKey
$params array
return mixed
    public function postSignedJSON(string $url, SignaturePublicKey $publicKey, array $params = [])
    {
        $response = $this->client->post($url, $this->params($params, $url));
        if ($response instanceof Response) {
            return $this->parseSignedJSON($response, $publicKey);
        }
        return null;
    }