hightman/httpclient

setJsonBody() multiple array issues

Closed this issue · 3 comments

Its PATCH request.

This is my json post data

{"user": {"profile_attributes": {"one_liner": "'.$title.'"}}}

i am trying like this but not working:

$request->setJsonBody(["user" => ["profile_attributes" => ["one_liner" => $title]]]);

No PATCH request data. Plz add it

i added it. Thanks