Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /www/wwwroot/dev.zhalaotie.com/wp-includes/wp-db.php on line 3215

Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /www/wwwroot/dev.zhalaotie.com/wp-includes/wp-db.php on line 3215
WordPress use REST API with C# (WordPressPCL) – 扎老铁
Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /www/wwwroot/dev.zhalaotie.com/wp-includes/wp-db.php on line 3215

Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /www/wwwroot/dev.zhalaotie.com/wp-includes/wp-db.php on line 3215
Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /www/wwwroot/dev.zhalaotie.com/wp-includes/wp-db.php on line 3215
class="post-53155 post type-post status-publish format-standard hentry">

WordPress use REST API with C# (WordPressPCL)

 

the C# WordPress use REST API Client SDK

https://github.com/wp-net/WordPressPCL

install the jwt auth plugin

// suggest set debug to false to prevent wordpress print Notice or Warning HTML message to rest api response json, to take bad effect
define( ‘WP_DEBUG’, false );

// I guess that’s because the definition of JWT_AUTH_SECRET_KEY must be done before require_once(ABSPATH . ‘wp-settings.php’);
define(‘JWT_AUTH_SECRET_KEY’, ‘mx_jwt_api_skey_haha’);

 

发表评论

电子邮件地址不会被公开。