找到你要的答案

Q:How to use fundamerica API with PHP?

Q:如何使用fundamerica API PHP?

I have been stuck on fundamerica API use with PHP. I know about curl and other staff but didnt get how to use this API with curl. The structure of the fundamerica API code is like this :-

<pre>
curl https://apps.fundamerica.com/api/entity_relationships \
-u 7Tft-uNlLJtgJezak2ywLINr7qHFa18i: \
-d child_entity_id='grYAoEvWT1WXtRt2uREvqg' \
-d description='Also a major stockholder.' \
-d parent_entity_id='H4XHtW7sSZua-55HdO-EiQ' \
-d parent_title= 'CEO'
</pre>

I didn't get how to use this code with php. You can see the documentation on the following URL: https://sandbox.fundamerica.com/support/documentation

我被困在fundamerica API使用PHP。我知道卷发和其他工作人员,但没有得到如何使用这个API与卷曲。fundamerica API的代码结构是这样的:—

<pre>
curl https://apps.fundamerica.com/api/entity_relationships \
-u 7Tft-uNlLJtgJezak2ywLINr7qHFa18i: \
-d child_entity_id='grYAoEvWT1WXtRt2uREvqg' \
-d description='Also a major stockholder.' \
-d parent_entity_id='H4XHtW7sSZua-55HdO-EiQ' \
-d parent_title= 'CEO'
</pre>

我没有得到如何使用此代码的PHP。你可以在以下网址查看文档:https://sandbox.fundamerica.com/support/documentation

answer1: 回答1:

Here is the code to execute fundamerica API:

$ch = curl_init(); 
curl_setopt($ch, CURLOPT_URL, "https://sandbox.fundamerica.com/api/ach_authorizations/agreement_html");

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);  
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6");  


curl_setopt($ch, CURLOPT_USERPWD, "e_CdE6BtTcuqF2lAIqSEKa6vzl39U_EN:");
curl_setopt($ch, CURLOPT_HEADER, 'Accept: application/json');

$output = curl_exec($ch);

这里是代码执行fundamerica API:

$ch = curl_init(); 
curl_setopt($ch, CURLOPT_URL, "https://sandbox.fundamerica.com/api/ach_authorizations/agreement_html");

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);  
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6");  


curl_setopt($ch, CURLOPT_USERPWD, "e_CdE6BtTcuqF2lAIqSEKa6vzl39U_EN:");
curl_setopt($ch, CURLOPT_HEADER, 'Accept: application/json');

$output = curl_exec($ch);
php  api  curl