- Home
- /
- MFORMULA ELEKTRONISCHER KATALOG
- /
- API
- /
- Kategorien
URL: http://www.namedoseusiten.com.br/api_categories.php?action=categories_List
PHP -Probe:
// Beispiellistenkategorien und Unterkategorien $ Url = $ tabain_url. ' /api_categories.php? Action = categories_list ' ;; $ 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); // Beispiellistenkategorien und Unterkategorien EOF
return:
id
text < /p>
Post: http://www.namedoseusiten.com.br/api_categories.php?action=add_categories
Categorie- oder Unterkategorie-Name
Format: varchar (255)
* Feld erforderlich < /p>
Nur Zahl ist erforderlich
Format: int (1)
* Feld erforderlich < /td>
Nur Zahl ist erforderlich.
Überprüfen Sie die API, um die ID der Kategorien oder Unterkategorien zu erhalten.
Format: int (11)
* * Feld erforderlich
Nur Zahl ist erforderlich
Format: int (3) < /td>
Format: Text < /td>
Format: Text < /td>
Format: Text < /td>
PHP -Probe
// Beispielkategorien und Unterkategorien hinzufügen $ Url = $ tabain_url. ' /api_categories.php? Action = add_categories ' ;; $ data = array ("categories_name" = & gt; "Kategorie oder Unterkategorie Name", // Categorie oder Unterkategorie-Name * Feld erforderlich "categories_status" = & gt; "1", // 1 = aktiv oder 0 = inaktiv (nur Zahl ist erforderlich) * Feld erforderlich "main_category" = & gt; "0", // Hauptkategorie der Unterkategorie (nur die Zahl ist erforderlich) * Feld erforderlich "Sort_order" = & gt; "", // order sortieren (nur Nummer ist erforderlich) "meta_title" = & gt; "Meta -Titel", // Meta -Titel "Meta_description" = & gt; "Meta Beschreibung", // Zielbeschreibung "meta_keywords" = & gt; "Meta-Keywords" ); $ 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); // Muster addieren Kategorien und Unterkategorien EOF
Rückgabefehler:
Code
Nachricht < /p>Erfolgserfolg:
Code
id
Nachricht
< /p>
Post: http://www.namedoseusiten.com.br/api_categories.php?action=edit_categories
Nur Zahl ist erforderlich
Format: int (11)
* Feld erforderlich < /td>
Categorie- oder Unterkategorie-Name
Format: varchar (255)
* Feld erforderlich < /p>
Nur Zahl ist erforderlich
Format: int (1)
* Feld erforderlich < /td>
Nur Zahl ist erforderlich
Format: int (3) < /td>
Format: Text < /td>
Format: Text < /td>
Format: Text < /td>
PHP -Probe
// Beispiele bearbeiten Kategorien und Unterkategorien $ Url = $ tabain_url. ' /api_categories.php? Action = edit_categories ' ;; $ data = array ("categories_id" = & gt; "182", // categorie oder subcategorie id (nur Nummer ist erforderlich) * Feld erforderlich "categories_name" = & gt; "Categorie- oder Unterkategorie-Name", // Kategorie oder Unterkategorie-Name * Feld erforderlich "categories_status" = & gt; "1", // 1 = aktiv oder 0 = inaktiv (nur Zahl ist erforderlich) * Feld erforderlich "Sort_order" = & gt; "", // order sortieren (nur Nummer ist erforderlich) "meta_title" = & gt; "Meta -Titel", // Meta -Titel "Meta_description" = & gt; "Meta Beschreibung", // Zielbeschreibung "meta_keywords" = & gt; "Meta-Keywords" ); $ 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 Kategorien und Unterkategorien EOF
Rückgabefehler:
Code
Nachricht < /p>Erfolgserfolg:
Code
id
Nachricht < /p>
Post: http://www.namedoseusiten.com.br/api_categories.php?action=edit_status_categories
Nur Zahl ist erforderlich
Format: int (11)
* Feld erforderlich < /td>
Nur Zahl ist erforderlich
Format: int (1)
* Feld erforderlich < /td>
PHP -Probe
// Beispielkategorien und Unterkategorien bearbeiten $ Url = $ tabain_url. ' /api_categories.php? Action = edit_status_categories ' ;; $ data = array ("categories_id" = & gt; "182", // categorie oder subcategorie id (nur Nummer ist erforderlich) * Feld erforderlich "categories_status" = & gt; "1" // 1 = aktiv oder 0 = inaktiv (nur Zahl ist erforderlich) * 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); // Beispiele für Statuskategorien und Unterkategorien EOF
Rückgabefehler:
Code
Nachricht < /p>Erfolgserfolg:
Code
id
Nachricht < /p>