- Home
- /
- MFORMULA ELEKTRONISCHER KATALOG
- /
- API
- /
- Kunden
URL: http://www.namedoseusiten.com.br/api_customers.php?cid=& such = & amp; date_from = & amp; date_to = & amp; status = & am;
Suche nach Kundenname, Nachname oder E -Mail -Adresse PHP -Probe: return: Hinweis: Limit von 1000 Kunden pro Konsultation customer_id
Parameter
Format
Beschreibung
Suche
Get
Es ist nur Text erforderlich < /p>
date_from
Get
Datum von für Filterbestellungen
Beispiel: DD/MM/JJJJ
date_to
Get
Datum für Filterbestellungen
Beispiel: DD/MM/JJJJ
Status
Get
Status für Filterbestellungen
1 = aktiv oder 0 = inaktiv
Nur Zahl ist erforderlich < /td>
customer_groups_id
Get
Kundengruppen für Filterbestellungen
Überprüfen Sie die API, um die Kundengruppen -ID zu erhalten.
Nur Nummer ist erforderlich < /td>
customer_language
Get
Englisch, Spanisch, Japanisch oder Portugiesisch
// Beispielkundenliste
$ add_query_order = ' ' ;;
$ Search = ' ' ;;
if ($ search! = ' ') {
$ add_query_order.
}
$ date_from = ' ' ;;
if ($ date_from! = ' ') {
$ add_query_order.
}
$ date_to = ' ' ;;
if ($ date_to! = ' ') {
$ add_query_order.
}
$ status = ' ' ;;
if ($ status! = ' ') {
$ add_query_order. = ' & amp; status = ' $ status;
}
$ Customs_Groups_id = ' ' ;;
if ($ Customs_groups_id! = ' ') {
$ add_query_order. = ' & amp; Customs_groups_id = '
}
$ Customs_Language = ' ' ;;
if ($ Customs_Language! = ' ') {
$ add_query_order.
}
$ Url = $ tabain_url. ' /api_customers.php? Action = Customs ' $ add_query_order;
$ Ch = curl_init ($ url);
Curl_setopt ($ ch, curlopt_returntransfer, true);
curl_setopt ($ ch, curlopt_sl_verifypeer, false);
Curl_setopt ($ ch, curlopt_httpHeader, Array (Array (
' Inhaltstyp: Anwendung/JSON ',,
"Cache-Control: No-Cache",
' Usuario1: ' . Basis64_CODE ($ Usuario1),
' Passwort1: ' . Basis64_CODE ($ password1)))
);
$ result = curl_exec ($ ch);
Curl_close ($ ch);
print_r ($ result);
// Beispielkunden listen eof auf
customer_lastname
customer_firstname
DATE_ACCOUNT_Created
Empfehlung
customer_status < /p>
URL: http://www.namedoseusiten.com.br/api_customers.php?action=customers_groups
PHP -Probe:
// Beispielliste für Zollpräparate $ Url = $ tabain_url. ' /api_customers.php? Action = customer_groups ' ;; $ Ch = curl_init ($ url); Curl_setopt ($ ch, curlopt_returntransfer, true); curl_setopt ($ ch, curlopt_sl_verifypeer, false); Curl_setopt ($ ch, curlopt_httpHeader, Array (Array ( ' Inhaltstyp: Anwendung/JSON ',, "Cache-Control: No-Cache", ' Usuario1: ' . Basis64_CODE ($ Usuario1), ' Passwort1: ' . Basis64_CODE ($ password1))) ); $ result = curl_exec ($ ch); Curl_close ($ ch); print_r ($ result); // Probe Kundengruppenliste EOF
return:
id
Text
< /p>
URL: http://www.namedoseusiten.com.br/api_customers.php?cid=customernumber&
Anzahl der Kunden -ID PHP -Probe return: Eintragung_Person_kind
Parameter
Format
Beschreibung
cid
Get
Die Zahl ist nur erforderlich
Format: int (11)
* Feld erforderlich < /p>
// Beispielliste für Zoll-Zoll-ID
$ add_query_order = ' ' ;;
$ cid = ' ' ;;
if ($ cid! = ' ') {
$ add_query_order. = ' & amp; cid = ' $ cid;
}
$ Url = $ tabain_url. ' /api_customers.php? Action = customer_id ' $ add_query_order;
$ Ch = curl_init ($ url);
Curl_setopt ($ ch, curlopt_returntransfer, true);
curl_setopt ($ ch, curlopt_sl_verifypeer, false);
Curl_setopt ($ ch, curlopt_httpHeader, Array (Array (
' Inhaltstyp: Anwendung/JSON ',,
"Cache-Control: No-Cache",
' Usuario1: ' . Basis64_CODE ($ Usuario1),
' Passwort1: ' . Basis64_CODE ($ password1)))
);
$ result = curl_exec ($ ch);
Curl_close ($ ch);
print_r ($ result);
// Beispiele für Zoll -ID -Liste EOF
customer_gender
customer_firstname
Eintrag_RG
customer_email_address
Eintrag_CNPJ
Eintragung_ie
Eintriebseintrieb
Eintragung_Postcode
/> Eintrag_Street_address
Eintrag_Number
Eintragung_Completion
Vorort
Eintragsstate
customer_telephone
Telefon_Commercial
customer_telephone_telephone_telephone_telephone_telephone_ Mobile_Telephone
mobile_mobile_mobile_fax
mobile_mobile_fax
mobile_mobile_fax
mobile_mobile_fax
mobile_mobile_fax
mobile_fax
mobile_mobile_fax BR /> MSN
COSPAL_NEWSLETTER
COSPALS_GROUPS_ID
Sprache < /p>
Post: http://www.namedoseusiten.com.br/api_customers.php?action=add_customers
Kunden FirstName
Es ist nur Text erforderlich
Format: varchar (32)
* Feld erforderlich < /p>
Es ist nur Text erforderlich
Format: varchar (32)
* Feld erforderlich < /td>
Beispiel: name@sit.com.br
Format: Varchar (96)
* Feld erforderlich < /td>
Minimum: 8 Zeichen
Format: varchar (40)
* Feld erforderlich < /td>
Beispiel: (11) 3230-6255
Format: Varchar (32)
* Feld erforderlich < /td>
Beispiel: (11) 3230-6255
Format: Varchar (32) < /td>
Beispiel: (11) 3230-6255
Format: Varchar (32) < /td>
Format: varchar (32) < /td>
Format: varchar (32) < /td>
Beispiel: (11) 3230-6255
Format: Varchar (32) < /td>
Nur Zahl ist erforderlich
Format: int (1)
* Feld erforderlich < /td>
Englisch, Spanisch, Japanisch oder Portugiesisch
* Feld erforderlich < /p>
* Feld erforderlich < /td>
* Feld erforderlich
Format: varchar (64)
* Feld erforderlich < /td>
Nur Nummer erforderlich
* Feld erforderlich < /td>
Es ist nur Nummer erforderlich
* Feld erforderlich < /td>
Es ist nur Text erforderlich
* Feld erforderlich < /td>
* Erforderliches Feld < /td>
Format: varchar (2)
* Feld erforderlich < /td>
PHP -Probe
// Muster hinzufügen Kunden hinzufügen $ Url = $ tabain_url. ' /api_customers.php? Action = add_customers ' ;; $ data = array ("Customs_firstname" = & gt; "Kunden FirstName", // Kunden FirstName * Feld erforderlich "Customs_LastName" = & gt; "Lastname -Kunden", // Kunden LastName * Field erforderlich "Customer_email_address" = & gt; "E -Mail@mformula.com.br", // E -Mail -Adresse * Feld erforderlich "Customer_password" = & gt; "Test", // Passwort * Feld erforderlich "Customer_telephone" = & gt; "(11) 3230-6255", // Telefon Beispiel: (11) 3230-6255 * Feld erforderlich "COPPER_TELEPHONE_COMMERCIAL" = & GT; "(11) 3230-6255", // kommerzielles Telefon Beispiel: (11) 3230-6255 "Customer_telephone_mobile" = & gt; "(11) 3230-6255", // Telefon mobiles Beispiel: (11) 3230-6255 "Skype" = & gt; "", // Skype Name "msn" = & gt; "", // msn "Customer_fax" = & gt; Beispiel: (11) 3230-6255 // Fax Telefon. "Customer_Newsletter" = & gt; "1", // Verwenden Sie das Feld 1 bis Ja oder 0 bis (Es ist nur eine Zahl erforderlich) * Feld erforderlich "Customer_groups_id" = & gt; "", // Überprüfen Sie die API, um die Liste der Kundengruppen zu erhalten "Customer_Language" = & gt; "Portugiesisch", // Englisch, Spanisch, Japanisch oder Portugiesisch * Feld erforderlich "COPPER_GENDER" = & GT; "m", // m oder f * Feld erforderlich "COPPER_DOB" = & GT; "01/02/1980", // dd/mm/yjyy * Feld erforderlich "Eintrag_Street_Address" = & gt; "Av Paulista", // Straßenadresse * Feld erforderlich "Eintrag_Number" = & gt; "1500", // Nummer Straßenadresse * Feld erforderlich "Eintrag_Completion" = & gt; "", // Abschluss Straßenadresse "Eintrag_Suburb" = & gt; "Gärten", // Vorort "Eintrag_Postcode" = & gt; "04206000", // Postleitzahl "Eintrag_City" = & gt; "Sao Paulo", // Stadt * Feld erforderlich "Eintrag_State" = & gt; "Sao Paulo", // Überprüfen Sie die API, um die Liste des Zustands * zu erhalten * "Eintrag_country_id" = & gt; "30", // Überprüfen Sie die API, um die Liste des Landes zu erhalten "Eintrag_Rg" = & gt; "", // rg "Eintrag_CPF" = & gt; "28240621856", // CPF "Eintrag_company" = & gt; "", // Name der Firma "Eintrag_cnpj" = & gt; "", // cnpj "Eintrag_ie" = & gt; "", // dh "Person_kind" = & gt; "Pf" // PJ oder Pf * Feld erforderlich ); $ data_string = json_encode ($ date); $ Ch = curl_init ($ url); Curl_setopt ($ ch, curlopt_customrequest, "post"); Curl_setopt ($ ch, curlopt_postfields, $ data_string); Curl_setopt ($ ch, curlopt_returntransfer, true); curl_setopt ($ ch, curlopt_sl_verifypeer, false); Curl_setopt ($ ch, curlopt_httpHeader, Array (Array ( ' Inhaltstyp: Anwendung/JSON ',, "Cache-Control: No-Cache", ' Usuario1: ' . Basis64_CODE ($ Usuario1), ' Passwort1: ' . Basis64_CODE ($ password1), ' Inhaltslänge: ' . Strlen ($ data_string)))) ); $ result = curl_exec ($ ch); Curl_close ($ ch); print_r ($ result); // Beispiel für Kunden hinzufügen eofRückgabefehler:
Code
Nachricht < /p>Erfolgserfolg:
Code
id
Nachricht < /p>
URL: http://www.namedoseusiten.com.br/api_customers.php?action=customers_country
PHP -Probe:
// Beispielkunden Länderliste $ Url = $ tabain_url. ' /api_customers.php? Action = customer_country ' ;; $ Ch = curl_init ($ url); Curl_setopt ($ ch, curlopt_returntransfer, true); curl_setopt ($ ch, curlopt_sl_verifypeer, false); Curl_setopt ($ ch, curlopt_httpHeader, Array (Array ( ' Inhaltstyp: Anwendung/JSON ',, "Cache-Control: No-Cache", ' Usuario1: ' . Basis64_CODE ($ Usuario1), ' Passwort1: ' . Basis64_CODE ($ password1))) ); $ result = curl_exec ($ ch); Curl_close ($ ch); print_r ($ result); // Probe Kunden Länderliste eof
return:
country_id
Country_Name < /p>
URL: http://www.namedoseusiten.com.br/api_customers.php?country_id=country_id&
Anzahl der Land -ID PHP -Probe: return: id
Parameter
Format
Beschreibung
country_id
Get
Überprüfen Sie die API, um die Liste der Landes zu erhalten.
// Beispielliste für Zollzustand
$ add_query_order = ' ' ;;
$ country_id = ' ' ;;
if ($ country_id! = ' ') {
$ add_query_order.
}
$ Url = $ tabain_url. ' /api_customers.php? Action = Customs_State '
$ Ch = curl_init ($ url);
Curl_setopt ($ ch, curlopt_returntransfer, true);
curl_setopt ($ ch, curlopt_sl_verifypeer, false);
Curl_setopt ($ ch, curlopt_httpHeader, Array (Array (
' Inhaltstyp: Anwendung/JSON ',,
"Cache-Control: No-Cache",
' Usuario1: ' . Basis64_CODE ($ Usuario1),
' Passwort1: ' . Basis64_CODE ($ password1)))
);
$ result = curl_exec ($ ch);
Curl_close ($ ch);
print_r ($ result);
// Probe Kunden staatliche Liste eof
text < /p>