Call modeling API

Call modeling API

I am developing a wordpress plugin that will create a new workspace in Zoho Analytics through the Modeling API. So I am using PHP.
I have the refresh token, client_id and client_secret, but i always have a fatal error in the client librairy.

Here's my code :



my error :


The method that triggers the issue :


If someone see what i am doing wrong, please tell me !