Skip to main content

Questions tagged [api]

An application programming interface (API) specifies how some software components should interact with each other. In addition to accessing databases or computer hardware, such as hard disk drives or video cards, an API can be used to ease the work of programming graphical user interface components. In practice, most often an API is a library that includes specifications for routines, data structures, object classes, and variables.

1vote
1answer
41views

How do I return XML to an API post request

I'm working on a plugin that deals with Twilio. Twilio makes a post request to the plugin and I have to respond with Twiml which is really just xml. If I try sending it through like this $wp_response =...
Eitan's user avatar
0votes
1answer
49views

Wordpress Error uploading image: 401 API Python Script

I have this script in python to try to upload an image. But First I added one ‘Application Password’ in my profile of wordpress. I have the key and all the user name is ‘admin’ However, the script ...
coerrace's user avatar
0votes
0answers
29views

Show Image in Plugin Development

I am developing a plugin. I am fetching information using API along with Image. My code is like below. `$this->short_code .= '<div class="ft_wi_weather_all" >' . ( ( ...
abu abu's user avatar
0votes
0answers
57views

from origin 'http://localhost:3000' has been blocked by CORS policy

I started a little WordPress project on localhost:3000. I create a custom post type and wanted to update the data via /wp/v2/custom_post_type/{id} On localhost:3000 i always get his error: Access to ...
Sam W.'s user avatar
1vote
1answer
152views

Content being rendered as empty string in posts endpoint

Hi so I'm developing an integration with a customer's Wordpress site so that we can index the site and search across its content for them. However I'm facing some issues while doing this : I am able ...
Sudarshan Sivakumar's user avatar
1vote
1answer
76views

Load More : Admin Ajax 400 Bad request, returning 0

I've been struggling to create a Load More button on a WP project. Basically, I use the Admin Ajax at our disposal when using WordPress. I also use the fetch API to communicate with it, via my load-...
Wumi Olabisi's user avatar
0votes
0answers
27views

i need to resive data external api and show user

i have one form for user , this form send code to external api and i need show user callback responce api this page and not ind plugin for this work (for show responce api current page for user ) i ...
Ali Garivani's user avatar
0votes
1answer
265views

Wordpress - Contact Form 7 - Get uploaded file issue

I'm aiming to submit my Contact Form 7 data in Wordpress to an API (all fields are fine, but adding the file attachment breaks my submit - error 500), which includes an attachment. I can make it work ...
Pbalazs89's user avatar
1vote
0answers
101views

How to use WordPress REST API to login a user with dart/flutter?

I'm creating an app that will work on phones, tablets and computers. I need to be able to authenticate a user, reset a password, retrieve their name and email, all via the WP API. I have zero clue how ...
Erin Skidds's user avatar
1vote
1answer
138views

Can't make an external api call in php side of wordpress child theme

Edited 07-14-24 to show permission callback in api Edit 2: showed my fatal error I'm new to making api calls in wordpress. I need to make an api call through the backend to a 3rd party api. I can't do ...
vroque2022's user avatar
1vote
0answers
63views

Wordpress Custom API GET request from External App with XML Parameter

I am new to WordPress API's and API's in general. I have an external app that is sending a GET request to my WordPress site with an XML string as the only parameter. I created a custom API that ...
Eugene's user avatar
1vote
1answer
79views

how to send csv file to other server using wp_remote_post?

I am facing issue while sending csv file to api. when i use simple php curl request it works fine for me and it sends the file to server. here is my php code $curl = curl_init(); curl_setopt_array( $...
wp_dev's user avatar
0votes
1answer
54views

How to get a list of all posts and their categories?

Basically I just need to have a table like this: Post title Categories Post 1 Category 1, Category 2 Post 2 Category 2, Category 2.1 ... ... From MySQL Query to Retrieve Category from wp_posts I ...
Ooker's user avatar
0votes
0answers
36views

Display a list on the front end from wp_remote_get()

I am getting the data I need from the request but I am not getting to the bottom of how to loop over the data and create a list on the front end. I presumed it would be a foreach loop but I am just ...
Craig Watson's user avatar
0votes
0answers
33views

Trying to use value in form submission to check against external API

I'm trying to be as concise as possible. I'm building a form that takes a value ('address') which in turn would get posted to an external API. However, the real functionality comes with checking the '...
Cynthia Wong's user avatar

153050per page
close