API Documentation for getLabels seems to be incorrect
In API documentation it says:
Returns all of user's labels.
project_id: The id of the project to update
token: The user's token (received on login)
as_list: If as_list is set to 1 then this method returns a list of labels, like ["home", "office"] - - instead of a object of labels.
In reality project_id is not required. If project_id is provided then nothing changes in the results.
The documentation should probably be updated to remove the project_id line entirely.