Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Posting data from ionic to wordpress

$
0
0

@MedAnis wrote:

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

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>