doucepei5298 2015-03-21 07:05
浏览 32

如何在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'
  • 写回答

1条回答 默认 最新

  • duanchao1002 2015-03-21 07:43
    关注

    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.

    评论

报告相同问题?

悬赏问题

  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?
  • ¥15 matlab(相关搜索:紧聚焦)
  • ¥15 基于51单片机的厨房煤气泄露检测报警系统设计