Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>tags/v14.0.0beta1
]); | ]); | ||||
if ($response->getStatusCode() === Http::STATUS_CREATED) { | if ($response->getStatusCode() === Http::STATUS_CREATED) { | ||||
return true; | |||||
$result = json_decode($response->getBody(), true); | |||||
return (is_array($result)) ? $result : []; | |||||
} | } | ||||
} catch (\Exception $e) { | } catch (\Exception $e) { |
* send federated share | * send federated share | ||||
* | * | ||||
* @param ICloudFederationShare $share | * @param ICloudFederationShare $share | ||||
* @return bool | |||||
* @return mixed | |||||
* | * | ||||
* @since 14.0.0 | * @since 14.0.0 | ||||
*/ | */ |