## REST API SDK for PHP
Working with Realtyna REST API.
Realtyna APIs are HTTP-based RESTful APIs. API response bodies are formatted in JSON.
## Requirements
This library requires `PHP ` >= ` 5.4.X` and `Wordpress with WPL PRO version`
## Dependencies
The following PHP extensions are required for all the WPL REST API functions to work properly:
* ``` ext-pdo ```
* ``` ext-pdo_mysql```
## Configure the secret key
* To add the **secret key**, edit your wp-config.php file and add a new constant called `SECRET_KEY_JWT`.
```php
define('SECRET_KEY_JWT', 'your secret key');
```
## HTTP Autorization
* To enable HTTP AUTHORIZATION, you’ll need to edit your .htaccess file and add the following:
```php
RewriteEngine on
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
```
## Common Problems
[Common Problems](http://v2.wp-api.org/guide/problems/)