Create API to get data from WordPress site to external site

Finalizat Postat la acum 6 luni S-au achitat serviciile după ce au fost prestate
Finalizat S-au achitat serviciile după ce au fost prestate

+ Urgent job, if you can't start now and work fast until complete, please don't bid.

+ If you are interested in the job, let's not waste 5+ hours on a reply to a message, let's reply fast.

I have a new WP website and need some of the data from the DB in another site. For this we need to create a 7 API's. Is this something you can help with? There are already some API's for this on our old site and they look like this:

REGISTER_REST_ROUTE:

register_rest_route('faqs', '/v1(?P<lang>)', array(

'methods' => 'GET',

'callback' => __NAMESPACE__ . '\\api_faqs',

));

FUNCTION api_faqs:

function api_faqs($data)

{

$faqs = Helper\get_api_faqs($data['lang']);

return rest_ensure_response($faqs);

}

FUNCTION get_api_faqs:

function get_api_faqs($lang)

{

global $sitepress;

$sitepress->switch_lang($lang);

$faqs = array();

$args = array(

'post_type' => 'knowledgebase',

'numberposts' => -1,

'order' => 'DESC',

'suppress_filters' => 0,

'post_status' => 'publish'

);

$posts = get_posts($args);

foreach ($posts as $key => $post) {

$api_faq = get_field('api_faq', $post->ID);

if ($api_faq) {

$faqs[] = $post;

}

}

$json_response = [];

foreach ($faqs as $key => $faq) {

$faqTitle = do_shortcode($faq->post_title);

$faqLink = get_the_permalink($faq->ID);

$faqContent = html_entity_decode(preg_replace("/%u([0-9a-f]{3,4})/i", "&#x\\1;", urldecode(do_shortcode($faq->post_content))), ENT_QUOTES, 'UTF-8');

// Remove youtube videos (iframe) from the content

$faqContent = preg_replace('/<iframe.*?\/iframe>/i', '', $faqContent);

// Check if faqContent has links

if (preg_match_all('/<a[^>]+href=([\'"])(?<href>.+?)\1[^>]*>/i', $faqContent, $faqContentLinks)) {

// loop through all links on current faq article

foreach ($faqContentLinks['href'] as $link) {

if (strpos($link, '=')) {

// isolate the id

$id = explode('=', $link)[1];

if (get_the_permalink($id)) {

// replace page id or post id with article's permalink

$faqContent = str_replace($link, get_the_permalink($id), $faqContent);

}

}

}

}

if (preg_match_all('/<img[^>]+src=([\'"])(?<src>.+?)\1[^>]*>/i', $faqContent, $faqContentImages)) {

// loop through all images of the current faq article

foreach ($faqContentImages['src'] as $image) {

$url = parse_url($image);

// Replace the host with the host of the request

$new_url = $url['scheme'] . "://" . $_SERVER["SERVER_NAME"] . $url['path'];

$faqContent = str_replace($image, $new_url, $faqContent);

}

}

$faqContentTextOnly = preg_replace('/(\\r\\n){3,}/', "\r\n", strip_tags($faqContent));

$json_response[] = [

'faqTitle' => $faqTitle,

'faqUrl' => $faqLink,

'faqContent' => $faqContent,

'faqContentTextOnly' => $faqContentTextOnly,

];

}

return $json_response;

}

PHP WordPress MySQL XML API

ID Proiect: #36649663

Detalii despre proiect

62 propuneri Proiect la distanță Activ acum 6 luni

Acordat lui:

tdteam

Hello, I'm wordpress expert, I have 10+ years experience in html, css, jquery, php, laravel, api, wordpress, joomla,.... I customized, created many themes, plugins. I'll give you best quality and support :) Please d Mai multe

%selectedBids___i_sum_sub_7%%project_currencyDetails_sign_sub_8% USD în 7 zile
(218 Recenzii)
7.1

62 freelanceri plasează o ofertă medie de 494$ pentru proiect

phpMaestro

Hello, I hope you are doing great, as per the job description, I have rich experience working in API development, APIIntegration, RESTful, 3rd Party Integration, Payment Gateway Integration, Back-end Programming(Php, C Mai multe

$500 USD în 7 zile
(385 recenzii)
10.0
OutsourceMan

Hello there! My name is Raman and I'm a top rated freelancer with over 18 years of experience in web and app development. I specialize in API, MySQL, PHP, WordPress and other related technologies. I'm confident that Mai multe

$500 USD în 7 zile
(640 recenzii)
9.0
hirujiyu

I am happy to help you with creating the API to fetch data from your WordPress site to an external site. I understand that this is an urgent job, and I assure you that I can start immediately and work efficiently to co Mai multe

$500 USD în 7 zile
(352 recenzii)
8.5
evgendob

Hello. WordPress development expert ready to help you with a project. I have more than 400 good reviews and more than 11 years of development experience behind, so all job will be done with the best quality and timefra Mai multe

$250 USD în 3 zile
(683 recenzii)
8.3
gauravgargcs

Hello, Warm Greetings! I have read your job description I can hep you to creating API to get data from WordPress site to external site I can do as per your requirement we can discuss more in detail. I have gone throug Mai multe

$500 USD în 7 zile
(281 recenzii)
8.0
seefattechnologi

Hello ----START RIGHT NOW---- I am highly appreciative to work on this specific task Create API to get data from WordPress site to external site** I can do my best. I am Passionate PHP/Full stack developer havi Mai multe

$600 USD în 7 zile
(106 recenzii)
7.8
mascotindia123

Hello, Hope you're doing good ! I have read your job description regarding "Create API to get data from WordPress site to external site" and assure you that I am a perfect fit for the job. I am a senior Web Programmer Mai multe

$500 USD în 7 zile
(320 recenzii)
7.8
EvenLogics

We have open slots so we can start immediately! As per my understanding, you require the development and implementation of some APIs that can get data from a new WordPress website to another site. We have a team of w Mai multe

$600 USD în 10 zile
(86 recenzii)
7.8
ishpreet11

Hi ai am an expert pogrammer with an experience of creating custom wordprss routes in API. i can helpbyou with right away. Quick turnaround guaranteed

$250 USD în 1 zi
(196 recenzii)
6.8
navjootkaur

Hello there! My name is Navjot and I am an experienced freelancer with 7+ years of experience in web design and development. I understand the importance of this project to you and would love to help you create an API t Mai multe

$500 USD în 7 zile
(186 recenzii)
6.6
daydreamsofthiru

As a FULL- STACK Developer, I am happy to help you create APIs to fetch data from your WordPress site to an external site. Based on the provided code snippets, I can see the structure of the existing APIs and I can ass Mai multe

$500 USD în 7 zile
(45 recenzii)
6.4
ahatechnocrats

Hey there, Let us help you our with APIs. We have over 10 yrs of expertise in handling such projects including large SaaS app. We can ready to start immediately if hired. Pay after completion of work but keep the pay Mai multe

$500 USD în 7 zile
(17 recenzii)
6.4
rabhardwaj

Hello, How are you?. I have been in this field for more than 10 years. I have experience in C#,PHP(Laravel ), Perl, WordPress, Joomla, Html, PostgreSQL, Ubuntu, Crontab, Web Services, Rest API, Zend ,YII, MySQL. I w Mai multe

$500 USD în 7 zile
(24 recenzii)
5.7
AliKhanXZT

Create API to get data from WordPress site to external site Hello Chris Oestergaard N., I would like to grab this opportunity and will be dedicated to your work till you get 100% satisfied with the tasks. I have 1 Mai multe

$500 USD în 7 zile
(13 recenzii)
5.3
Nehag510

Hello, I am a professional Web developer with over 5 years of experience in the field. I understand that you are looking for someone to create API to get data from WordPress site to external site and provide 7 API's. Mai multe

$400 USD în 5 zile
(20 recenzii)
5.5
SushilBarwal

5+ hours Hey, Expert WordPress developer with 8+ years of experience. Yes, I can certainly help you with creating APIs to fetch data from your WordPress website's database and make it accessible to another site. -- Mai multe

$540 USD în 5 zile
(32 recenzii)
5.4
ludiac

Hi there. Thank you for posting this project. We can handle the task for you. As a team of skilled developers, we have experience working with WordPress websites and creating custom APIs. We will ensure the smooth int Mai multe

$500 USD în 7 zile
(20 recenzii)
5.7
merinsinha

I can do it. As 9+ years experiences in these field. I can give good quality work. I have read the guidelines of your work.I believe that i can provide you the best quality works you are anticipating from this platform Mai multe

$500 USD în 7 zile
(49 recenzii)
4.8
siddhantrajsinha

Hi Siddhant, my name is Elvin, and I am a FullStack Website | WordPress | WooCommerce | Website & Mobile App Development freelancer with over 12+ years of experience. I specialize in providing end to end quality web & Mai multe

$470 USD în 20 zile
(14 recenzii)
5.1
CubixSys

Hi Sir, How are you ? It seems like you need to create seven APIs to fetch data from your WordPress website and make it available on an external site. I assure you that I can help you with this task. To proceed effic Mai multe

$500 USD în 10 zile
(12 recenzii)
3.6