How to retrieve own user sites on network site using REST API

Question

Is there a way to get the sites of user on network site using REST API using that users authentication?

I tried https://www.example.com/main/userdomain/wp-json/wp/v2/users/johnsmith but it doesn’t return the results in my tests.

For example, say user John Smith is using the REST API. He makes a REST call and it returns a list of sites in the response.

0
, , , 1.21 gigawatts 5 months 0 Answers 68 views 0

Leave an answer