Skip to content
View in the app

A better way to browse. Learn more.

Froxlor Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

API / Customer.update / allowed_phpconfigs

Featured Replies

Hallo,

eine kurze Frage zur API (2.0.19). Ich würde gerne die erlaubten PHP Konfigurationen setzen.

Beim Abruf erhalte ich zB folgenden Wert:

    ["allowed_phpconfigs"]=>
    string(5) "[2,3]"

 

wenn ich aber da etwas setzen möchte (zB ID 3,4) bekomme ich als Antwort immer nur "NULL".

Beispiel wie ich ein Update mache (die PHP IDs gibt es natürlich)

$data = [
        'id' => '16',
        'email_imap' => '1',
        'email_pop3' => '1',
        'phpenabled' => '1',
        'allowed_phpconfigs' => '[3,4]'
];
$response = $fapi->request('Customers.update', $data);

 

Vielen Dank!

	 * @param array $allowed_phpconfigs
	 *                             optional, array of IDs of php-config that the customer is allowed to use, default
	 *                             empty (none)

du übergibst schon den JSON string, einfach direkt als PHP array übergeben:
 

$data = [
        'id' => '16',
        'email_imap' => '1',
        'email_pop3' => '1',
        'phpenabled' => '1',
        'allowed_phpconfigs' => [3,4]
];
$response = $fapi->request('Customers.update', $data);

 

  • Author

uff, danke... das war jetzt peinlich :)

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.