1. Home
  2. /
  3. MFORMULA ELEKTRONISCHER KATALOG
  4. /
  5. API
  6. /
  7. Kategorien
  8. /
  9. Post: http://www.namedoseusiten.com.br/api_categories.php?action=edit_categories ...

Post: http://www.namedoseusiten.com.br/api_categories.php?action=edit_categories

Parameter Format Beschreibung categories_id json Categorie oder Unterkategorie-ID
Nur Zahl ist erforderlich
Format: int (11)
* Feld erforderlich < /td> categories_name json

Categorie- oder Unterkategorie-Name
Format: varchar (255)
* Feld erforderlich < /p> categories_status json 1 = aktiv oder 0 = inaktiv
Nur Zahl ist erforderlich
Format: int (1)
* Feld erforderlich < /td> sort_order json Sortierreihenfolge
Nur Zahl ist erforderlich
Format: int (3) < /td> meta_title json Titelziel
Format: Text < /td> meta_description json Zielbeschreibung
Format: Text < /td> meta_keywords json Meta -Schlüsselwörter
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_categories

Parameter Format Beschreibung

categories_id json Categorie oder Unterkategorie-ID
Nur Zahl ist erforderlich
Format: int (11)
* Feld erforderlich < /td>

categories_name json

Categorie- oder Unterkategorie-Name
Format: varchar (255)
* Feld erforderlich < /p>

categories_status json 1 = aktiv oder 0 = inaktiv
Nur Zahl ist erforderlich
Format: int (1)
* Feld erforderlich < /td>

sort_order json

Sortierreihenfolge
Nur Zahl ist erforderlich
Format: int (3) < /td>

meta_title json Titelziel
Format: Text < /td>

meta_description json Zielbeschreibung
Format: Text < /td>

meta_keywords json Meta -Schlüsselwörter
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>

Schreibe einen Kommentar 0