Page 1 of 2

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

Posted: Thu Dec 24, 2015 9:51 pm
by Michael2210441

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!


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

Posted: Fri Dec 25, 2015 12:36 pm
by Serhii Kulibaba

Hello,

Please look at this topic: https://getsatisfaction.com/apperyio/...


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

Posted: Fri Dec 25, 2015 3:54 pm
by Michael2210441

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?


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

Posted: Sat Dec 26, 2015 9:11 am
by Alena Prykhodko

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).


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

Posted: Sat Dec 26, 2015 6:27 pm
by Michael2210441

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.


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

Posted: Sat Dec 26, 2015 6:51 pm
by Michael2210441

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,.


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

Posted: Tue Jan 05, 2016 11:42 am
by Andrew Peacock6291534

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


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

Posted: Tue Jan 05, 2016 10:50 pm
by Michael2210441

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?


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

Posted: Tue Jan 12, 2016 10:13 pm
by Andrew Peacock

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


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

Posted: Tue Jan 12, 2016 10:34 pm
by Andrew Peacock

Ooh. I've also just seen this: https://devcenter.appery.io/documenta... and this https://auth0.com/docs/connections/so... together which might work.