Diglin\Ricardo\Services\Security::getAntiforgeryTokenResult
Get the antiforgery token
The Ricardo API returns: <pre> { "CreateAntiforgeryTokenResult": { "AntiforgeryTokenKey": "[REAL_TOKEN]", "TokenExpirationDate": "\/Date(1386664920000+0100)\/" } } </pre> Array returned: <pre> array( 'AntiforgeryTokenKey' 'TokenExpirationDate' ); </pre>
Signature
public function getAntiforgeryTokenResult(array
$data )
Parameters
$data
— array
Returns
- array