Err: 405- Method not Allowed. Unable to Read Directories from a QloudData(Nextcloud) account using a written golang code

I wrote a Golang code to read the files/folders in my own regular account on Nextcloud(QloudData). It shows me the following error in the picture.

ReadDir%20error1

The code uses the “gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud” API. The code snippet can be seen in the following image.

Urgent replies are required and would be appreciated.