method registerProject documentation in bbn\Appui\Api
function(array $cfg)
{
if ($this->jwt) {
$key_out = self::_get_tmp_key(true);
$jwt = $this->jwt->setKey($key_out)->set(['data' => $cfg]);
if ($res = X::curl(
self::REMOTE,
['action' => 'register_project', 'data' => $jwt]
)
) {
$key_in = self::_get_tmp_key();
return $this->jwt->setKey($key_in)->get($res);
}
else {
throw new \Exception(X::_("Impossible to register"));
}
}
else {
throw new \Exception(X::_("No JWT"));
}
}
BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2023
BBN Solutions