如何在PHP中使用FundAmerica RESTful API?

I am trying to use the FundAmerica REST API. The documentation can be found here, but I don't understand how to use it. I found a library on Github, but see a lot of errors when I try to use it:

Strict Standards: Declaration of ACHToken::delete() should be compatible with that of APIResource::delete()

Strict Standards: Declaration of ACHToken::find() should be compatible with that of APIResource::find()

Could someone please explain to me how I can either:

  • Avoid these errors when using the library?
  • Use the API in PHP without using the library?

Also, could someone please explain what this means:

curl https://apps.fundamerica.com/api/example_objects \
-u 7Tft-uNlLJtgJezak2ywLINr7qHFa18i: \
-X POST \
-d name='OBJECT NAME'

You don't really need to use a library for this - simply send a request (via cURL, XMLHttpRequest, or something else) to the relevant URL (such as https://sandbox.fundamerica.com/api/offerings) with the relevant parameters (such as amount='5000000').

If you're using PHP, the http_request() function seems to be what you need.