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?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>