Questions tagged [wordpress-json-api]

A plugin that provides a RESTful API for WordPress. It allows WordPress content to be retrieved and manipulated via simple HTTP requests.

This tag is used to add JSON API which allows you to retrieve and manipulate WordPress content using HTTP requests

44 questions
60
votes
9 answers

java.lang.ClassNotFoundException: com.fasterxml.jackson.annotation.JsonInclude$Value

I am trying to convert my json string to java object and I am getting error Exception in thread "main" java.lang.NoClassDefFoundError: com/fasterxml/jackson/annotation/JsonInclude$Value at…
user327126
  • 757
  • 2
  • 8
  • 19
8
votes
2 answers

WP rest API get post by title

I'm trying to check by a post title if post exist or not. For some reason when i try something like: http://domain.com/wp-json/wp/v2/posts?filter[post-title]=table I want if post with the name table exist, to get the post, if not, get an empty…
BenB
  • 2,180
  • 2
  • 22
  • 41
8
votes
3 answers

How do I get the Wordpress JSON-API to work on Nginx server?

For some reason "out-of-the-box" the Wordpress JSON API does not work on Nginx. I have tried several redirect schemes in the nginx conf. The only thing I have gotten to work is ?json. However, this does not work for authentication and…
etrey
  • 389
  • 1
  • 4
  • 12
7
votes
4 answers

Make WordPress WP-API faster by not loading theme and plugins

I would like to make requests to the WordPress API much faster. My API is implemented in a plugin (using register_rest_route to register my routes). However, since this is a plugin, everything is loaded with it (the child-theme and the theme) and…
TigrouMeow
  • 960
  • 3
  • 16
  • 28
3
votes
3 answers

wordpress wp_get_current_user data not displaying in jason-api

I want to display a WordPress logged in user ID and email in another website so, I'm using the wordpressjson-api plugin to create an api but it's not working. When I hit a direct link, it displays data as: "{\"id\":1,\"email\":\"admin@admin.com\"}"…
2
votes
0 answers

How we can deploy or host our JSON-SERVER API?

I have implemented one react template with static data for learning purpose only. And deployed in github. For data I have created one json file in directory. But this file is not reacted as a API, Means I can't perform post, put and filter…
Varun Sharma
  • 3,782
  • 7
  • 37
  • 84
2
votes
4 answers

401 Unauthorized with Wordpress Basic Auth Plugin

I have installed the plugin made by the Wordpress Team: https://github.com/WP-API/Basic-Auth I am making this request with Wordpress 4.9.4: GET http://somehostname.com/index.php?rest_route=%2Fwp%2Fv2%2Fposts&per_page=100&page=2&context=edit…
2
votes
1 answer

AngularJS Wordpress JSON API Plugin returning html instead of json

I'm trying to get recent posts from my wordpress blog but it's returning html instead of json. I want to use json to make it easier to access the blog contents. I already have the plugin installed and activated. Here's what I do to get the posts: …
user3226932
  • 1,383
  • 4
  • 23
  • 43
1
vote
0 answers

How to Properly Download a PDF File Through the Wordpress API from Backend Server

I built a custom Wordpress plugin. The plugin frontend is a Facebook React JS application that is embedded into a Wordpress page via a shortcode. It uses the Wordpress REST API exclusively to send and retrieve JSON between the client browser and…
Dean Poulin
  • 1,098
  • 1
  • 8
  • 21
1
vote
0 answers

Wordpress JSON Auth API generate_auth_cookie method cookie value

I need help with how to use the cookie generated using Wordpress JSON Auth API. I am unable to get the hashed cookie but get what appears to be the header. When I set this cookie on my javascript client it doesn't work obviously. Workinkg…
wibwaj
  • 143
  • 4
  • 16
1
vote
1 answer

How to solve flutter wordpress json api error?

I am trying to parse json from my wordpress site http://crunchbox.epizy.com/wp-json/wp/v2/ on a flutter app which fetch title and featured image from all existing post here is the code: final String apiUrl =…
ArbaazAJ
  • 13
  • 5
1
vote
0 answers

Add comments to a wordpress blog using json api in bottle python

Python: I have to add comments on wordpress blog using json wordpress api. Json api plugin is already installed on wordpress application. I have already get blog content using json api. Need to put comments for the blog now. Any way to do this!
1
vote
1 answer

Unable to parse JSON REST API response

I have got a JSON REST API response from an URL. Now I am unable parse the JSON data. I tried many solutions but could not get the data. The response is quite messed up, but it contains the required data. All the JSON objects are in one array. Here…
Addi.Star
  • 441
  • 1
  • 11
  • 32
1
vote
0 answers

Wordpress API not found error

I'm trying to call an API on our web server that allows us to create a user account in a Wordpress site. If I enter the URL into a browser it works fine. If I try to call it via code it comes up with the following error : - The remote server…
Shazoo
  • 601
  • 11
  • 21
1
vote
0 answers

Buddypress JSON API Plugin to show particular User activity

Im using Buddypress JSON Api plugin, wanted to know how single User Activity can be displayed. The function which is provided by BP JSON API is activity_get_activities() which display all user's activity through out the website.But i wanted to…
Reena
  • 11
  • 2
1
2 3