You have basically tree ways.
I think the first solution via WP JSON API should be your prioritized way. The WP API will implement inside the core of WordPress in the next releases. Currently you can use it via plugin. I think, this is the standard for the next time for work with data from the WP install. Also you find a lot of tutorials, examples to use the data.
For the authentification use OAuth, like this plugin. You find much more hints, tutorials in the documentation about the API. Also interest is the actually hint from the developer side.
Related Posts:
- Minecraft Server closes immediately after running?
- WAMP vs XAMPP pros/cons – for running a local testing server [closed]
- WordPress local development environment [closed]
- Can you host WordPress using Amazon Web Services such as EC2, RDS, EBS etc?
- Character encoding issue after changing servers
- WordPress .htaccess subdirectory problem
- Implement ssl to a WP docker container [closed]
- Apache/Linux configuration changes to make automatic upgrade more straightforward
- Testing local server with MAMP/wordpress on mobile device? [closed]
- Arabic Characters in URL returns 404 Error
- Connect to server with SFTP instead of FTP/FTPS within WordPress Backup
- WordPress hangs when I publish or update a post [closed]
- Force Cron to run only on one server
- Gutenberg: unable to save attributes with ServerRender
- WordPress incorrectly redirects to local IP address?
- Handling the response sent from a ruby on rails application in wordpress
- How might I setup a development server (local) and a test/production server (remote)
- Why does WordPress get posts from MySQL from a virtual hostname but not the direct hostname?
- Can you have multiple wordpress sites under the same domain?
- Can’t delete unwanted favicon
- How to Better Control WordPress Cron Jobs?
- Changing the server path
- Editing post and page responding 503 Service Unavailable
- what are the chmod rights recommended to give for every folders of wordpress projects
- WordPress installation site folder move to the final site destination
- WordPress hosting optimized servers – Is this just a sales gimmick? [closed]
- External cron job firing too many times
- Does WP read itself?
- SSH Upgrade Problem
- Archived Server for Reference – Unable to Navigate Passed Homepage
- dev site running on subdomain is redirecting to the main domain
- copy wordpress site files on new server
- Lamp stack not supporting phpmyadmin? [closed]
- HTTP Error on media upload, only httpd restart helps
- Moving wordpress to an unknown outlet
- White screen on front page only
- Log Author Actions
- WordPress hosting moved from windows server to linux server
- WordPress backup(on another server)leading to old server addy and WP
- cURL error for cron
- WordPress sub-directory on other server running on nginx?
- Server specification [closed]
- How to change settings so I can upload images in WordPress posts?
- WordPress FTP via admin panel slow
- Scripts external to WordPress cause 404 errors
- WordPress PHP version/info not being picked from cPanel PHP Version values
- Changing domain name causes some strange problem in my browser
- Sequence of finding a website when they are running WordPress
- i have a problem with my domain getting rederected to another one
- How to optimize wp_delete_post() function, or why it is so slow
- Adding a “code checker” for my e-learning wordpress site
- localhost/wordpress(or other application), how does it work?
- WordPress vps memory allocation
- Getting past the Synology default web site when creating a web server
- Internal Server Error after restoring MySQL databases
- Apache using full RAM problem
- Best WordPress Cloud Hosting Provider that allows installation of ffmpeg 4.0
- Server (VPS) is going down when editing a bigger wordpress article! (?)
- URL problem in my site
- Setting up WordPress client and server
- Migrating WordPress from Windows Server 2008 R2 (IIS v7.5) to CentOS
- Formatting wordpress debug messages
- Multi-server environment is causing problems in WordPress
- Best practices for configuring a server?
- Does WordPress perform better with curl installed?
- WordPress or plugin need tomcat?
- Trouble getting wordpress working after moving servers
- Apache extensions for WordPress’ working without troubles
- WordPress keeps crashing my server
- WordPress not working locally
- Would Amazon AWS Services be a good alternative to my current hosting provider?
- WordPress site causing lots of server IO
- What level of permissions should the plugins folder be set to?
- Download a zip folder of selected files
- Problems with ‘require (./xxx)’ on IIS7.5
- Moving a WordPress website from one server to another
- Test for IP in Array Always Fails on First IP
- Where can I find web hosting reviews? [closed]
- Check WordPress size on disk
- Will denying all ip address except my own create a problem?
- Reduce initial server response time wordpress
- How to fix wordpress slow first time load (Local Server)?
- Error establishing a database connection After Copy localhost wordpress site (with site url directly to hosting server’s url before copy)
- Preventing BFA in WordPress without using a plugin
- update user information
- Sync user meta data to a second database
- How to Fix “Are You Sure You Want to Do This”, while uploading my theme?
- Migrated from Windows to Linux. Any bulk methods for fixing case sensitivity?
- Execute long and heavy processes
- WP & Server Speed [Teacher Question]
- How to keep several local copies of a theme in sync?
- Second page (and next) of search results redirects me to the home page
- how to move another machine or server without dealing with IP
- Moved to a new server, backup was a day old and missing 3 posts, anyway to recover them from old host?
- Reject all malicious URL requests functions.php
- How to queue API requests with PHP in WordPress?
- copy fields value to another field
- Why is the server response time slowing my site down? [closed]
- Run WordPress multisite from secondary volume on AWS EC2
- Many images in wp-content/uploads folder that are not in Media Library