Title: Niki API Client
Author: fundamentallmedia
Published: <strong>2019년 3월 18일</strong>
Last modified: 2019년 3월 18일

---

플러그인 검색

이 플러그인은 **최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다**. 워드프레스의
좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 
있을 수 있습니다.

![](https://s.w.org/plugins/geopattern-icon/lnp-api-client.svg)

# Niki API Client

 작성자: [fundamentallmedia](https://profiles.wordpress.org/fundamentallmedia/)

[다운로드](https://downloads.wordpress.org/plugin/lnp-api-client.0.3.1.zip)

 * [세부사항](https://ko.wordpress.org/plugins/lnp-api-client/#description)
 * [평가](https://ko.wordpress.org/plugins/lnp-api-client/#reviews)
 *  [설치](https://ko.wordpress.org/plugins/lnp-api-client/#installation)
 * [개발](https://ko.wordpress.org/plugins/lnp-api-client/#developers)

 [지원](https://wordpress.org/support/plugin/lnp-api-client/)

## 설명

The Niki API Client is a WordPress implementation of the Niki.nl REST API. It yields
the
 following functionality:

 * authorisation: using username and password, acquire an oauth (version 1.0) token
   to access the Niki API
 * project selection: in a list of all projects in your account, select the relevant
   project(s) to use in the website
 * resource implementations: Implementation of all resources of the [Niki REST API](https://api.niki.nl/apidocs)
   except for the ‘search’ resources.

#### Example implementation

In the plugin directory, a folder named ‘examples’ is included. This folder contains
3 items:
 # /classes: example view classes for housetypes, housetype-listings, and
interest forms # /theme: contains an example wordpress-theme, this theme can be 
installed (copied) in your theme folder # niki-functions.php: file providing methods
for displaying various Niki data

Of course, these are example implementations, not ment for direct production use.
They will point you in the right direction while
 implementing your own Niki-data
filled website.

## 설치

#### From your WordPress dashboard

 1.  Visit ‘Plugins > Add New’
 2.  Search for ‘Niki API client’
 3.  Activate the plugin through the ‘Plugins’ menu in WordPress
 4.  Under `Niki server`, enter `Niki OAuth URL` : `https://auth.niki.nl`
 5.  Under `Niki server`, enter `Niki API URL` : `https://api.niki.nl`
 6.  Press `Wijzigingen opslaan`
 7.  Click `Vraag Niki API Token aan` and follow instructions.
 8.  When the token is retrieved, under `Niki projecten` check the relevant projects
     and click `Wijzigingen opslaan`
 9.  You are now ready to use the Niki data in your WordPress site.

#### From WordPress.org

 1.  Download Niki API client
 2.  Upload the plugin folder to the `/wp-content/plugins/` directory using your favorite
     method (ftp, sftp, scp, etc…)
 3.  Activate the plugin through the ‘Plugins’ menu in WordPress
 4.  Under `Niki server`, enter `Niki OAuth URL` : `https://auth.niki.nl`
 5.  Under `Niki server`, enter `Niki API URL` : `https://api.niki.nl`
 6.  Press `Wijzigingen opslaan`
 7.  Click `Vraag Niki API Token aan` and follow instructions.
 8.  When the token is retrieved, under `Niki projecten` check the relevant projects
     and click `Wijzigingen opslaan`
 9.  You are now ready to use the Niki data in your WordPress site.

#### Installing the example theme

 1. Using FTP, copy the folder /examples/theme/niki-template to your themes folder
 2. Go to your admin dashboard http://www.yoursite.nl/wp-admin
 3. Go to settings->permalinks, activate the “Post name” option and then save the changes
 4. Under display->theme’s, click ‘activate’ on item ‘Niki Template’
 5. Now go visit your site http://www.yoursite.nl/niki/aanbod and http://www.yoursite.
    nl/niki/interesse

## 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);
    ?>
    ```

## 후기

이 플러그인에 대한 평가가 없습니다.

## 기여자 & 개발자

“Niki API Client”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에
기여하였습니다.

기여자

 *   [ fundamentallmedia ](https://profiles.wordpress.org/fundamentallmedia/)

[자국어로 “Niki API Client”(을)를 번역하세요.](https://translate.wordpress.org/projects/wp-plugins/lnp-api-client)

### 개발에 관심이 있으십니까?

[코드 탐색하기](https://plugins.trac.wordpress.org/browser/lnp-api-client/)는, [SVN 저장소](https://plugins.svn.wordpress.org/lnp-api-client/)
를 확인하시거나, [개발 기록](https://plugins.trac.wordpress.org/log/lnp-api-client/)
을 [RSS](https://plugins.trac.wordpress.org/log/lnp-api-client/?limit=100&mode=stop_on_copy&format=rss)
로 구독하세요.

## 변경이력

#### 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

## 기초

 *  버전 **0.3.1**
 *  최근 업데이트: **8년 전**
 *  활성화된 설치 **10보다 적음**
 *  워드프레스 버전 ** 3.0.1 또는 그 이상 **
 *  다음까지 시험됨: **4.9.33**
 *  언어
 * [English (US)](https://wordpress.org/plugins/lnp-api-client/)
 * 태그:
 * [api](https://ko.wordpress.org/plugins/tags/api/)[Client](https://ko.wordpress.org/plugins/tags/client/)
   [niki rest api](https://ko.wordpress.org/plugins/tags/niki-rest-api/)
 *  [고급 보기](https://ko.wordpress.org/plugins/lnp-api-client/advanced/)

## 평점

아직 제출된 리뷰가 없습니다.

[Your review](https://wordpress.org/support/plugin/lnp-api-client/reviews/#new-post)

[모든  리뷰 보기](https://wordpress.org/support/plugin/lnp-api-client/reviews/)

## 기여자

 *   [ fundamentallmedia ](https://profiles.wordpress.org/fundamentallmedia/)

## 지원

할 말 있으신가요? 도움이 필요하신가요?

 [지원 포럼 보기](https://wordpress.org/support/plugin/lnp-api-client/)

## 기부

이 플러그인이 발전하도록 도우시겠습니까?

 [ 이 플러그인에 기부하기 ](http://fundament.nl/)