url:http://www.namedoseusite.com.br/api_customers.php?cid=& search =& date_from =& date_to =& status =&am; =顧客
パラメーター | フォーマット | 説明 |
検索 | get |
顧客名、姓、またはメールアドレスによる検索 |
date_from | get | フィルター注文の日付 例:dd/mm/yyyy |
date_to | get | フィルター注文の日付 例:dd/mm/yyyy |
status | get | フィルター注文のステータス 1 =アクティブまたは0 =非アクティブ 数のみが必要です< /td> |
customers_groups_id | get | フィルター注文の顧客グループ APIをチェックして顧客グループを取得する 番号のみが必要です< /td> |
customers_language | get | 英語、スペイン語、日本、ポルトガル語 |
phpサンプル:
//サンプル顧客リスト $ add_query_order =&#39;&#39 ;;
$ search =&#39;&#39 ;;
if($ search!=&#39;&#39;){
$ add_query_order。=&#39;&amp; search =&#39; $ search;
}
$ date_from =&#39;&#39 ;;
if($ date_from!=&#39;&#39;){
$ add_query_order。=&#39;&amp; date_from =&#39; $ date_from;
}
$ date_to =&#39;&#39 ;;
if($ date_to!=&#39;&#39;){
$ add_query_order。=&#39;&amp; date_to =&#39; $ date_to;
}
$ status =&#39;&#39 ;;
if($ status!=&#39;&#39;){
$ add_query_order。=&#39;&amp; status =&#39; $ status;
}
$ customs_groups_id =&#39;&#39 ;;
if($ customs_groups_id!=&#39;&#39;){
$ add_query_order。=&#39;&amp; customs_groups_id =&#39;
}
$ customs_language =&#39;&#39 ;;
if($ customs_language!=&#39;&#39;){
$ add_query_order。=&#39;&amp; customs_language =&#39;
}
$ url = $ tabain_url。 &#39; /api_customers.php?action = customs&#39 ;. $ add_query_order;
$ ch = curl_init($ url);
curl_setopt($ ch、curlopt_returntransfer、true);
curl_setopt($ ch、curlopt_ssl_verifypeer、false);
curl_setopt($ ch、curlopt_httpheader、array(
&#39; content-type:application/json&#39;、
「キャッシュコントロール:キャッシュなし」、
&#39; usuario1:&#39; 。 base64_encode($ usuario1)、
&#39; Password1:&#39; 。 base64_encode($ password1)))
);
$ result = curl_exec($ ch);
curl_close($ ch);
print_r($ result);
//顧客のサンプルリストeof
返品:
注:相談ごとに1000人の顧客の制限
customers_id
customers_lastname
customers_firstname
date_account_created
referral
customers_status < /p>