- Home
- /
- MFORMULA ELEKTRONISCHER KATALOG
- /
- API
- /
- Produtos
URL: http://www.namedoseusiten.com.br/api_products_ots.php?action=countries
Header Parameter | Format |
Usuario1 | Base64_encode () |
password1 | Base64_encode () |
PHP -Probe:
// Beispielland if ($ _get [' Aktion '] == ' Länder ') { $ Url = $ tabain_url. ' /api_products_ors.php? Action = Länder ' ;; $ 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", ' Token: ' . Basis64_CODE ($ token), ' Geheimnis: ' . Basis64_CODE ($ Secret), ' E-Mail: ' . Basis64_CODE ($ E -Mail), ' Inhaltslänge: ' . Strlen ($ data_string)))) ); $ result = curl_exec ($ ch); Curl_close ($ ch); print_r ($ result); } // Beispielländer eof
return:
id
text < /p>
URL: http://www.namedoseusiten.com.br/api_products_ots.php?af=zones
Header Parameter | Format |
Usuario1 | Base64_encode () |
password1 | Base64_encode () |
PHP -Probe:
// Beispielzonen if ($ _get [' Aktion '] == ' Zonen ') { $ Url = $ tabain_url. ' /api_products_ors.php? Action = Zones ' ;; $ data = array ("country_id" = & gt; $ _get [' Country_id '] // Country ID (nur die Zahl wird bewertet) * 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", ' Token: ' . Basis64_CODE ($ token), ' Geheimnis: ' . Basis64_CODE ($ Secret), ' E-Mail: ' . Basis64_CODE ($ E -Mail), ' Inhaltslänge: ' . Strlen ($ data_string)))) ); $ result = curl_exec ($ ch); Curl_close ($ ch); print_r ($ result); } // Beispielzonen EOF
return:
id
text < /p>
URL: http://www.namedoseusiten.com.br/api_products_ots.php?action=list_products
Header Parameter | Format |
Usuario1 | Base64_encode () |
password1 | Base64_encode () |
1, 2 oder 3
Es ist nur Zahl erforderlich < /p>
Nur Zahl ist erforderlich < /td>
sort_product_name
sort_date_added
sort_date_updated
sort_code
sort_quantity
sort_price
sort_bestseller < /td>
PHP -Probe:
// Beispiellistenprodukte $ add_query_order = ' ' ;; if ($ _get [' Status ']! = ' ') { $ add_query_order. } if ($ _get [' Search_Model ']! = ' ') { $ add_query_order. } if ($ _get [' Suche ']! = ' ') { $ add_query_order. } if ($ _get [' Kategorie ']! = ' ') { $ add_query_order. } if ($ _get [' sort_order ']! = ' ') { $ add_query_order. } $ Url = $ tabain_url. ' /api_seller_products_others.php? Action = list_products ' $ 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), ' Inhaltslänge: ' . Strlen ($ data_string)))) ); $ result = curl_exec ($ ch); Curl_close ($ ch); print_r ($ result); // Beispiellistenprodukte EOF
return:
products_id
Bild
Name
Modell
Menge
Status
DATE_ADDED
last_modified < /p>
URL:
Header Parameter Format Usuario1 Base64_encode () password1 Base64_encode ()
PHP -Probe:
// Beispiellistenprodukte und -Werte $ Url = $ tabain_url. ' /api_products_ots.php? Action = list_products_options_values ' ;;
oder
$ url = $ domain_url. ' /api_products_ots.php? Action = list_products_options_values & amps_id = ' $ _ Get [' products_id ']; $ Ch = curl_init ($ url); Curl_setopt ($ ch, curlopt_returntransfer, true); curl_setopt ($ curl, curlopt_ssl_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); // Beispiellisten -Produkte Optionen und Werte eof
return:
id
text < /p>
Post: http://www.namedoseusiten.com.br/api_products_others.php?action=add_suppliers
Header Parameter | Format |
Usuario1 | Base64_encode () |
password1 | Base64_encode () |
Hauptname der Lieferanten
Format: varchar (255)
* Feld erforderlich < /p>
Format: Text
* Feld erforderlich < /td>
PHP -Probe
// Probe Addieren Sie Lieferanten hinzufügen $ Url = $ tabain_url. ' /api_products_ors.php? Action = add_suppliers ' ;; $ data = array ("Lieferanten_Group_Name" = & gt; "Hauptname der Lieferanten", // Hauptname des Feldes * Feld erforderlich "Lieferanten_Description" = & gt; "Beschreibung der Lieferanten" // Beschreibung des Lieferanten * 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); // Probe addieren Lieferanten EOF
Rückgabefehler:
Code
Nachricht < /p>Erfolgserfolg:
Code
id
Nachricht < /p>Post: http://www.namedoseusiten.com.br/api_products_others.php?action=edit_suppliers
Header Parameter | Format |
Usuario1 | Base64_encode () |
password1 | Base64_encode () |
Format: int (11)
* Feld erforderlich < /td>
Hauptname der Lieferanten
Format: varchar (255)
* Feld erforderlich < /p>
Format: Text
* Feld erforderlich < /td>
PHP -Probe
// Beispiele für die Bearbeitungslieferanten bearbeiten $ Url = $ tabain_url. ' /api_products_ors.php? Action = edit_suppliers ' ;; $ data = array ("Lieferanten_ID" = & gt; "ID der Lieferanten", // ID des Lieferanten * Feld erforderlich "Lieferanten_Group_Name" = & gt; "Hauptname der Lieferanten", // Hauptname des Lieferanten * Feld erforderlich "Lieferanten_Description" = & gt; "Beschreibung der Lieferanten" // Beschreibung des Lieferanten * 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); // Beispiele bearbeiten Lieferanten eof
Rückgabefehler:
Code
Nachricht < /p>Erfolgserfolg:
Code
id
Nachricht < /p>Post: http://www.namedoseusiten.com.br/api_products_others.php?af?
Header Parameter | Format |
Usuario1 | Base64_encode () |
password1 | Base64_encode () |
Anzahl von Products_id
Format: int ()
* Feld erforderlich < /p>
Anzahl der products_options_id
Format: int ()
* Feld erforderlich < /p>
Anzahl der products_options_values_id
Format: int ()
* Feld erforderlich < /p>
Hinweis: Bei der Bearbeitung müssen Sie alle Attribut- und Werteoptionen aufgrund aller Attribute und Werte im Bearbeitungsprozess erneut senden.
PHP -Probe
// Beispiele für Produktoptionen und Werte für Beispiele hinzufügen Listenliste hinzufügen $ Url = $ tabain_url. ' /api_products_ors.php? Action = add_products_options_values ' ;; $ dATA_OPTIONS_VALUES [0] = Array ("products_options_values_id" = & gt; "35" ); $ DATA_OPTIONS_VALUES [1] = Array ("products_options_values_id" = & gt; "30" ); $ DATA_OSSES [0] = array ("products_options_id" = & gt; "4" "Products_options_values" = & gt; $ dATA_OPTIONS_VALUES ); $ data = array ("products_id" = & gt; "430", // Produkt -ID (nur die Zahl ist erforderlich) * Feld erforderlich "Products_options" = & gt; $ Data_osses ); $ 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); // Beispielliste Produktoptionen und Werte eof
Rückgabefehler:
Code
Nachricht < /p>Erfolgserfolg:
Code
id
Nachricht < /p>Post: http://www.namedoseusiten.com.br/api_products_others.php?action=add_uv
Header Parameter | Format |
Usuario1 | Base64_encode () |
password1 | Base64_encode () |
Hauptname der Einheit des Verkaufs
Format: Text
* Feld erforderlich < /p>
PHP -Probe
// Beispiel uv hinzufügen $ Url = $ tabain_url. ' /api_products_ors.php? Action = add_uv ' ;; $ Data = array ("uv_name_text" = & gt; "Hauptname der Einheit des Verkaufs" // Hauptname der Einheit des Verkaufs * 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); // Probe uv eof hinzufügen
Rückgabefehler:
Code
Nachricht < /p>Erfolgserfolg:
Code
id
Nachricht < /p>Post: http://www.namedoseusiten.com.br/api_products_others.php?action=edit_uv
Header Parameter | Format |
Usuario1 | Base64_encode () |
password1 | Base64_encode () |
Format: int (11)
* Feld erforderlich < /td>
Hauptname der Einheit des Verkaufs
Format: Text
* Feld erforderlich < /p>
PHP -Probe
// Beispiel bearbeiten UV $ Url = $ tabain_url. ' /api_products_ors.php? Action = edit_uv ' ;; $ data = array ("uv_id" = & gt; "id der Einheit des Verkaufs", // ID der Einheit des Verkaufs * Feld erforderlich "Uv_name_text" = & gt; "Hauptname der Einheit des Verkaufs" // Hauptname der Einheit des Verkaufs * 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 bearbeiten uv eof
Rückgabefehler:
Code
Nachricht < /p>Erfolgserfolg:
Code
id
Nachricht < /p>Post: http://www.namedoseusiten.com.br/api_products_others.php?action=add_pack
Header Parameter | Format |
Usuario1 | Base64_encode () |
password1 | Base64_encode () |
Hauptname des Pakets
Format: varchar (255)
* Feld erforderlich < /p>
Es ist nur Zahl erforderlich
Beispiel: 16
Format: int (4)
* Feld erforderlich < /td>
Es ist nur Zahl erforderlich
Beispiel: 11
Format: int (4)
* Feld erforderlich < /td>
Es ist nur Zahl erforderlich
Beispiel: 20
Format: int (4)
* Feld erforderlich < /td>
PHP -Probe
// Beispielpakete hinzufügen Pakete hinzufügen $ Url = $ tabain_url. ' /api_products_ots.php? Action = add_pack ' ;; $ Data = array ("name" = & gt; "Länge" = & gt; "Länge der Packung", // Länge des Packungsfeldes erforderlich "Höhe" = & gt; "Höhe des Pakets", // Höhe des Packungsfeldes erforderlich "Breite" = & gt; "Breite des Packs" // Breite des Packs * 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); // Beispielpakete EOF hinzufügen
Rückgabefehler:
Code
Nachricht < /p>Erfolgserfolg:
Code
id
Nachricht < /p>