This Niki API Client is an interface to the Niki house-database API, for easy usage in WordPress sites. For example using a template.
Author: | Fundament All Media (profile at wordpress.org) |
WordPress version required: | 3.0.1 |
WordPress version tested: | 4.9.10 |
Plugin version: | 0.3.1 |
Added to WordPress repository: | 18-03-2019 |
Last updated: | 18-03-2019
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | http://niki.nl |
Total downloads: | 652 |
Click to start download
|
FAQ
How do I show information of a specific housetype in my site?
Include the niki-functions.php
in your page template and call the specific housetype information
by specifying project id and housetype id like so:
<?
require_once $niki->get_plugin_path() . "examples/niki-functions.php";
niki_show_woningtype('TBIGEN_79DBBC06-518B-4591-882E-EE63359CCBA8','TBIGEN_4D14999B-87DB-4874-ACB9-B3CBD87B2936');
?>
In this example, the first parameter is the Niki project id, and the second parameter is the Niki housetype id.
How do I list the housetypes in my selected projects?
Include the niki-functions.php
in your page template and call the listing example function like so:
<?
require_once $niki->get_plugin_path() . "examples/niki-functions.php";
niki_show_aanbod();
?>
This will generate a listing of all housetypes in the projects selected in the admin configuration.
How do i render a default interest form?
Include the niki-functions.php
in your page template (if you dit not do already so), and show the form:
<?
require_once $niki->get_plugin_path() . "examples/niki-functions.php";
niki_show_interesse();
?>
How do I make a generic Niki API request
Given any Niki API resource, you can access the Niki API by the following code:
<?
// example project resource
$resource = '/projects/34/TBIGEN_79DBBC06-518B-4591-882E-EE63359CCBA8' ;
$myProject = $niki->get_niki_resource($resource, array()); // empty parameter array, not needed here
// display the contents of $myProject
var_dump($myProject);
?>
ChangeLog
0.3.1
Bugfix to make example template work with the rewrite rules
0.3
Name change of API to Het Nieuwbouw Platform API client
0.2.4
Fixed a missing error message after changes were made in the Oauth module of auth.niki.nl
0.2.3
Added Jurgen to contributors
0.2.2
Added extra div to detailpage for additional styling options.
0.2.1
Always initialize niki object in contructor for global accessing of plugin.
0.1
Initial Release