Michael2210441
Posts: 0
Joined: Sat Jan 04, 2014 5:42 pm

How to connect to WP4.4 REST API with Authorization?

Does anyone have experience connecting Appery to WP4.4 REST API using Oauth?

I can't figure out which of the tutorial is the closest to being helpful with this need. I am lacking the skill to translate between the verbiage on the WP side with the verbiage on the various Appery tutorials to understand how to make this work.

My goal is to read and write (with authorization) to a remote WP site using Appery services. Hope someone would be willing to share this little gem...

Thanks in advance!

Michael2210441
Posts: 0
Joined: Sat Jan 04, 2014 5:42 pm

How to connect to WP4.4 REST API with Authorization?

So am I supposed to take that as you telling me to go away? That post you linked to just tells the questioner you don't support custom api services and go ask WordPress support. You KNOW there's no such thing. In fact every related question here just blows off (or worse) the question. II can only guess there's some higher price we need to pay to stop protecting this knowledge. Just name a price and no need to keep insulting users, eh?

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

How to connect to WP4.4 REST API with Authorization?

Dear Michael,

Unfortunately we do not have ready solution to share, so as mentioned in related post you can search online for appropriate implementation.

Also you may consider purchasing Advisory Pack and our developers will provide you more in-depth help on this question. Here is more information about Advisory Pack (http://appery.io/services/#Advisory_Pack).

Michael2210441
Posts: 0
Joined: Sat Jan 04, 2014 5:42 pm

How to connect to WP4.4 REST API with Authorization?

I just asked if anyone was willing to help. Thought this was a public forum and appery.io is unwilling to give support without charging on top of what we already paid, but why not allow a community to develop and help itself? What product can survive with a forum full of posts telling it's customers to pay up or get out and use Google? Appery.io I'd a great platform and Max has done a ton of work making it intuitive... Unfortunately it suffers from a support team who is working against those efforts and clearly prefers we all never ask a question.

Michael2210441
Posts: 0
Joined: Sat Jan 04, 2014 5:42 pm

How to connect to WP4.4 REST API with Authorization?

If there is anyone NOT employed by appery/excidel who is willing to give the basic outline of instruction asked for above, for less than the price of the support package referenced above, ($600),please reach me through my website or this forum. I'm not too cheap to pay, I am just not willing to pay THAT much for such a simple, basic support request that MUST companies would see as an opportunity,.

Andrew Peacock6291534
Posts: 0
Joined: Fri Jul 17, 2015 11:05 pm

How to connect to WP4.4 REST API with Authorization?

Hi Michael,

I'm looking into this as well. What I'm looking into at the moment is:

  1. Enable oAuth on the WP server (there are a few plugins to do this).

  2. Integrate oauth.io into the app, using their Cordova/Phonegap plugin and Appery's new plugin support.

    It's working, if i remember correctly from before the holidays.

    The Angular function to login is:

    OAuth.popup(provider, {cache: true}).then(function(result) {
    result.me().then(function(data) {

    Code: Select all

     $scope.user.oauth_id = data.id; 
     $scope.user.oauth_provider = provider; 
    
     console.log(provider + ":" + data.id); 

}
});

$scope.user is part of the model I've defined for the project.

The only bad point (again, if I remember where I left off before the holiday period) is that this opens up in a browser window which looks like it's from the 1980s, with a grey location bar, etc. (on Android at least).

If you need more details, let me know and I'll share what I can.

Andy

Michael2210441
Posts: 0
Joined: Sat Jan 04, 2014 5:42 pm

How to connect to WP4.4 REST API with Authorization?

Hey Andrew,

Thanks for your reply.

Am I correct in believing that if my reason for using oAuth is to authenticate the app with the site, I really only need to add an oAuth server type plugin to the site and no need to use oauth.io in addition?

Any interest in taking on a paid project to connect my app?

Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

How to connect to WP4.4 REST API with Authorization?

Hi Michael, apologies for not getting back to you sooner.

I've actually encountered problems with this approach, but only on a real device - it's working OK on my genymotion emulator, bizarrely (https://getsatisfaction.com/apperyio/... ).

You probably will need to use the OAuth.io plugin, as I've not found a good alternative. There is an example here for working with Google and Twitter: https://devcenter.appery.io/documenta..., which I think I got working (with Google and Twitter only) at some point in the past while playing around.

I guess you could modify it to work with your WP server, but that was too much like hard work for me. I decided to let Oauth.io bear the brunt of the effort.

I don't have capacity to take on paid work at the moment, unfortunately, but I'm willing to help out and will share a sample project with you if I get it working.

Hope that helps,
Andy

Return to “Issues”