I’m working with ionic v1 and wordpress using the JSON API to get posts from the wordpress web site to my ionic app , now I want that any user can post something ( create a post) from the ionic app to the website , any help ? do I need to know something about authentification ? Thank you I tried this
.controller('EmailCtrl', function ($scope, $http) {
$scope.sendFeedback = function (params) {
$http.post("http://localhost/backend3/api/create_post/?nonce=14aa094055&title=example&content=samplesample&&status=publish").then(
function () {
}, function (err) {
console.log(err);
})
}
and I got errors
ionic.bundle.js:25005 POST http://localhost/backend3/api/create_post/?nonce=14aa094055&title=add%tag&content=tagtagtag&&status=publish net::ERR_CONNECTION_REFUSED