Linux 软件免费装
Banner图

Catenis API Client for WordPress

开发者 catenisadmin
更新时间 2022年10月7日 05:22
PHP版本: 5.6 及以上
WordPress版本: 6.0
版权: MIT

标签

blockchain Catenis Blockchain of Things Catenis API

下载

1.1.0 1.1.1 1.1.2 2.1.0 2.2.0 1.0.0 2.0.0 4.0.0 3.0.0

详情介绍:

Catenis API Client for WordPress enables (JavaScript) code on WordPress pages to interact with the Catenis API. Enabling the Catenis API client To enable the Catenis API client for a given WordPress page, go to the page's edit page and look for a section (meta box) named "Catenis API Client" below the page's main editing panel. Make sure the section is expanded, and check the Load Catenis API Client checkbox. You can then choose to override the global settings used for instantiating the Catenis API client on that given page, like using a different device ID and its associated API access secret. Otherwise, whatever is configured in the plugin's global settings -- configured under "Settings" | "Catenis API Client" -- is going to be used. Using the Catenis API client Once enabled, a global JavaScript variable named ctnApiClient is made available on the page. That variable holds the instantiated Catenis API client object. Use the ctnApiClient variable to call the Catenis API methods by invoking the corresponding method on that object. For a reference of the available methods, please refer to the Catenis API JavaScript Client as it is functionally identical to the Catenis API Client for WordPress, except for notifications support and error handling. Notifications support The notification feature on Catenis API Client for WordPress is almost identical to the one found on the Catenis API JavaScript client. The two noticeable differences are:
  1. The Catenis API client object can emit a comm-error event.
  2. The open event emitted by the WebSocket notification channel object may return an error.
Please refer to the "Receiving Notifications" section below for detailed information on how to receive Catenis notifications from within WordPress pages. Error handling Errors that take place while calling the Catenis API methods are returned as standard JavaScript Error objects.

安装:

System requirements The PHP executable should be in the system PATH so that the plugin can spawn the process used to handle notifications. Installation procedure
  1. Upload the plugin files to the "/wp-content/plugins/" directory.
  2. Activate the plugin through the "Plugins" menu in WordPress.
  3. Go to "Settings" | "Catenis API Client" to configure the global settings for instantiating the Catenis API client.
  4. A meta box named "Catenis API Client" will be available on every WordPress page's edit page. Use it to make the Catenis API client available from a given page, and optionally configure custom settings for instantiating the Catenis API client for that given page.
Please refer to Catenis API documentation for further information on accessing the Catenis API.

屏幕截图:

  • The plugin's global settings menu
  • The "Catenis API Client" meta box on a WordPress page's edit page.

升级注意事项:

4.0.0 Upgrade to this version to take advantage of the new features found in version 0.12 of the Catenis API. This is also a requirement if using the plugin with version 6.0 of WordPress. 3.0.0 Upgrade to this version to take advantage of the new features found in version 0.11 of the Catenis API. 2.2.0 Upgrade to this version to take advantage of the new features found in version 0.10 of the Catenis API. 2.1.0 Upgrade to this version to take advantage of the new features found in version 0.9 of the Catenis API, and to improve the end user's experience when using Google Chrome. 2.0.0 Upgrade to this version to take advantage of the new features found in version 0.8 of the Catenis API and the improved notifications implementation. 1.1.2 All users are advised to upgrade to this version. 1.1.1 Upgrade to this version if using the plugin in a multi-site WordPress environment. 1.1.0 All users are advised to upgrade to this version even if not planning to use notifications since it also adds several enhancements and fixes to the basic functionality.

常见问题:

What client options settings should I use to connect with the Catenis API sandbox environment?

When doing it on the plugin's global settings ("Settings" | "Catenis API Client"), just leave all fields of the "Client Options" section blank. However, when doing it on the "Catenis API Client" meta box on a WordPress page's edit page, use the following settings to make sure that all client options fields of the plugin's global settings are properly overridden:

  • Host: catenis.io
  • Environment: sandbox
  • Secure Connection: On

更新日志:

4.0.0 3.0.0 2.2.0 2.1.0 2.0.0 1.1.2 1.1.1 1.1.0 1.0.0