Project title:
API call to return all page data - Wordpress site
Posted by:
External project from PeoplePerHour
Started:
25-Oct-2021 20:40 GMT
Description:
The following code is working. It returns a response. I need to call each page and return all records. Using the query parameter page=xx. I will need to do the work with you using team viewer. function getAccessToken() { global $token_url, $client_id, $client_secret; $content = "grant_type=client_credentials"; $authorization = base64_encode("$client_id:$client_secret"); $header = array("Authorization: Basic {$authorization}","Content-Type: application/x-www-form-urlencoded"); $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => $token_url, CURLOPT_HTTPHEADER => $header, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_POSTFIELDS => $content )); $response = curl_exec($curl); curl_close($curl); return json_decode($response)->access_token; } // step B - with the returned access_token we can make as many calls as we want function getResource($access_token) { global $test_api_url; $header = array("Authorization: Bearer {$access_token}"); $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => $test_api_url, CURLOPT_HTTPHEADER => $header, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_RETURNTRANSFER => true, )); $response = curl_exec($curl); curl_close($curl); return json_decode($response, true); // } }
Project ID:
3217644
Project category:
Project budget:
Project
Started
Hoarding design required by today
Category : Banner Design, Graphic Design, Illustration, Photoshop, Poster Design Budget : ₹600 - ₹800 INR
23-Apr-2024 16:04 GMT
Urgent Python Expert for Captcha Scraping
Category : Data Mining, Python, Software Architecture, Statistics, Web Scraping Budget : $10 - $30 USD
23-Apr-2024 16:02 GMT
Lets-Encrypt free SSL/TLS server for MailEnable (v.10.48)
Category : Security Systems, SSL, System Admin, Windows Server Budget : €30 - €250 EUR
23-Apr-2024 16:02 GMT
Middle Eastern Cybersecurity Research Paper
Category : Article Writing, Report Writing, Research, Research Writing, Technical Writing Budget : $10 - $30 USD
23-Apr-2024 16:02 GMT
Kaithi To Hindi Image Document Translation
Category : Arabic Translator, English (US) Translator, Hindi Translator, Translation, Urdu Translator Budget : ₹1500 - ₹12500 INR
23-Apr-2024 16:00 GMT
Arabic to English E-Commerce Translator
Category : Arabic Translator, English (UK) Translator, English (US) Translator, English Grammar, Translation Budget : $80 - $750 USD
23-Apr-2024 16:00 GMT
List of Ex depositor leads, Crypto, stcok, nft etc
Category : Data Entry, Internet Marketing, Leads, Sales, Web Search Budget : $250 - $750 USD
23-Apr-2024 15:59 GMT
Vibrant Website for Closet & Fence Design Company
Category : Graphic Design, HTML, Logo Design, Photoshop, Web Design Budget : $30 - $250 USD
23-Apr-2024 15:59 GMT
Reality-Based Documentary
Category : Video Production, Videography Budget : £1500 - £3000 GBP
23-Apr-2024 15:58 GMT
Comprehensive School Examination System (.net core ,angular, Sql server )
Category : AngularJS, ASP.NET, C#, Programming, Microsoft SQL Server, SQL Budget : ₹600 - ₹1500 INR
23-Apr-2024 15:58 GMT
Detailed 3D Model for Product Visualization
Category : 3D CAD, CAD / CAM Budget : $250 - $750 USD
23-Apr-2024 15:57 GMT
Enhance Product Advertising Photos
Category : Adobe Lightroom, Graphic Design, Photo Editing, Photoshop, Photoshop Design Budget : €30 - €250 EUR
23-Apr-2024 15:57 GMT
Outdoor Wedding & Portrait Photography Specialist
Category : Adobe Lightroom, Photo Editing, Photography Budget : $30 - $250 USD
23-Apr-2024 15:56 GMT
Comprehensive Loan Application Android App
Category : Android, IPhone, Java, Mobile App Development, PHP Budget : ₹1500 - ₹12500 INR
23-Apr-2024 15:55 GMT
Multi-Platform Flutter App Developer Needed
Category : Android, Graphic Design, IPhone, Mobile App Development, User Interface / IA Budget : ₹100 - ₹400 INR
23-Apr-2024 15:55 GMT
Browse All Projects