You can use the official extension for Magento 1.x as an example.
Please not that this functionality is absent in the official Ginger Payments PHP SDK (because Ginger Payments does not support this API part yet).
Details: [Kassa Compleet] An example of a response to «GET merchants/self/projects/self/»