Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

There is also a "settings" hook for each module:

ModcodeHookEndpoint typeEvent / positionVariables
Any module which provides a General settings menu itemsettingsSettingsAdds an item to the General settings

Interface endpoint

An interface endpoint is iframed into Microbizz, so the output of your script will be displayed inline in the Microbizz system. All variables are passed as GET variables. In addition to the variables mentioned in the chart above, you'll always receive a variable named sessiontoken which is the sessiontoken of the current Microbizz user. You can use the ValidateSessionToken API command to validate this session token, to ensure that your URL is actually called from the Microbizz system and not spoofed from somewhere else. You should use this call before outputting any information.

...

If this JSON structure isn't returned, the request is also considered to have failed.

Settings endpoint

An event endpoint is iframed into Microbizz so that the output appears in the General settings of the relevant module.

You have to handle load/save/forms etc yourself. Microbizz doesn't provide a "Save" button.