This API uses an oAuth2 approach. With the endpoint /sites/$site/follows/new
, it looks like you’d have to prompt the user to authenticate themselves on WordPress.com, get back a code, which you then have to exchange on an endpoint for access token. This is all explained here. The information stored in the Access Token you receive after the oAuth2 authentication would hold the user’s information, and would be used to add them as a follower of your blog when you make the POST request.
Unfortunately, in as far as I can tell, there is no way to add a follower by email through the API directly.
I know it may not be the ideal solution, but it looks like your best bet is to create a follow button here: https://en.support.wordpress.com/follow-button/
Of course, you could go through the whole oAuth2 approach, but ultimately it’d probably be a lot easier to just generate the button. Hope this helps.
Related Posts:
- I Want to Get A Plugin Version Number Dynamically
- Get a list of all WordPress.org Plugins?
- [Plugin WPML] : How to create a translation of a post using the WPML API?
- What WordPress API function lists active/inactive plugins?
- Change Page’s Tag Using functions.php File
- How to build an API as a plugin
- Membership / subscription plugins – alternatives [closed]
- Get Latest Plugin Version from WP API
- Email Notifications of new posts to users – suggestions [closed]
- How should I use register_setting, add_settings_section, & add_settings_field in my plugin’s options page?
- Using custom code, how can I fetch data from the WordPress plugin repo?
- Can’t use /wp-json/wp/v2/plugins API endpoint even as administrator
- Send Data to WordPress from kiosk
- Multisite functions to communicate with individual site functions
- Does the WordPress API have Modal Dialogs
- Plugin for Sending Email to Readers about New Posts? (besides “Subscribe2 “)
- An Unexpected HTTP Error occurred during the API request
- Server-side subscribe by email?
- REST-API: extend media-endpoint
- How to check if WordPress is updating plugins?
- Custom routing for plugins
- Advanced Integration – WordPress + YOURLS
- Get Plugin Information from Multiple Sites Externally
- WordPress plugin for mail subscriptions [closed]
- Keep user’s privileges on accessing contents in JSON response
- How to get subscription key or id using Woocommerce Subscriptions [closed]
- Is it possible to install two mail plugins together in a single WordPress site? How to do it? [closed]
- Best way to hook a custom url?
- How can I add an options page for my class based plugin?
- Sending WP posts to external API
- CMB2 Repeatable Group & JSON API
- How do I create a custom add media button modal?
- WordPress JSON API remove posts from a specific category
- How to access data in wordpress database externally using php
- Magazine subscription sales through WP?
- How to modify WCMP Rest API response?
- How to use JSON data from URL into table on my wordpress website
- wp_remote_get() returns 403 while file_get_contents() does not
- Limit post creation by role
- Set plugin-values when creating post via REST-API
- WordPress plugin subscribe2 not looking the same as before migration
- WordPress does not show products when the value of post_parent is not 0
- WordPress api call using wp-ajax returns error 400
- WordPress stats API key
- Plugin is a widget, but I want to call it in the head, can I?
- Great blogs site resources/tutorial for WordPress Developers? [closed]
- Socialite WP plugin, unable to obtain API keys from FB
- Prevent plugin from intruding on wp-json posts api
- Getting a Page via its post-name using WP REST API v2 and Postman
- How to set category correctly for a custom post created by a remote API call?
- Integrating boxtal PHP library into a custom WordPress Plugin
- How to get theme’s info from wordpress.org/themes using api.wordpress.org?
- Custom API plugin to execute 3rd party API to retrieve data
- How to Include Fields in Query String When Making Request of WordPress.org Plugin API?
- Sending customer an email with link to stripe to make payment
- Api external with wordpress
- How to get a list of all the available plugins names
- How can ι create my own (custom) WordPress table/list?
- Can i use init hook for API purpose?
- Including content from legacy app: via plugin or custom content?
- Why may one avoid Jetpack plugin? [closed]
- Automatic recurring payment using YITH subscription and Dokan Stripe
- How to convert Currency from USD to other IP Based currency in Php function
- How do I display PHP file contents on front end of WordPress?
- Push Contact form 7 variable to front end after submission
- Escape commas in REST API
- Ability to change homepage on WordPress using API
- How to use third-party SendGrid Email Validation API in Gravity Forms?
- is it possible to fetch data from a remote api while admin is writing a new post?
- best way to handle subscriptions with a licence?
- WordPress output data to another website and pull data
- One time call to external API in widget
- wp_remote_post To external API multiple values with the same key
- How to get data from a private API and add it to wordpress pages
- Create API for registering user on wordpress site with 3rd party site
- Different function call depending on shortcode?
- How to use information from the database in the front-end?
- Mailpoet Sign up on Custom registration form won’t work
- wp rest api (v2) filter not working (404 error – rest_no_route)
- API page return Header 500 but Work
- In the WordPress API is there a way to set the width of the post/page container
- what is the best way to create a premium plugin while also protecting your code
- WordPress, modular content, and syndication
- create web service for android app using wordpress website
- API Functions to Register and Show WordPress List Tables
- Convert HTML5/CSS3 site to WordPress Theme (need a lot of plugins) or just use the API?
- Integrating a hosted app with wordpress using the API
- How do I replace the e-mail form to functional e-mail subscription? [closed]
- Plugin that uses AngularJS tutorial
- How to set different users for different pages?
- Woocommerce Subscriptions – Customer change subscribed product after placed
- Import tumblr post to wordpress blog
- Plugin to allow for recurrent subscription + exclusive content
- How to import data from another website using an API link?
- Create Custom Coupon Type
- Am having issues intergrating this api into my wordpress site, any help please?
- cURL External API request displays content above other content on page
- How to write a plugin that “listens” every time, an edit occurs?
- Is it possible to create post in wordpress using postman?
- move setting data from wordpress api to codestar freamwork