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_status_categories ...

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

Parameter Format Beschreibung categories_id json Categorie oder Unterkategorie-ID
Nur Zahl ist erforderlich
Format: int (11)
* Feld erforderlich < /td> categories_status json 1 = aktiv oder 0 = inaktiv
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>

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

Parameter Format Beschreibung

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

categories_status json 1 = aktiv oder 0 = inaktiv
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>

Schreibe einen Kommentar 0