Skip to content
Advertisement

How to Return List of Project Tasks in ActiveCollab

Sorry this may be a trivial question but I am new to PHP. In the documentation to retrieve project tasks, the following code is provided to connect to an Active Collab cloud account:

JavaScript

This works fine. I can then create a client to make API calls:

JavaScript

and get the list of tasks for a given project as shown in the documentation.

JavaScript

My question is, what methods/attributes are available to get the list of tasks? I can print the object using print_r() (print will obviously not work), and what I really want is in the raw_response header. This is private however and I cannot access it. How do I actually get the list of tasks (ex: the raw_response either has a string or json object)?

Thanks in advance.

Advertisement

Answer

There are several methods to work with body:

JavaScript

For full list of available response methods, please check ResponseInterface.

If you wish to loop through tasks, use something like this:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement