Level 73
You can always check what it returns:
dd($data=json_decode($response_user->body(), true));
I bet it will be an array of items so you will need to iterate over it.. this will work but it is hard-coded to the first item:
$data=json_decode($response_user->body(), true)[0]['NAME'] ;
note the [0]
1 like