How to authenticate with groupon? - java

I'm looking to develop a groupon android app that let the user look at their purchased groupon along with other stuffs. I know there's an app out there already. But it doesn't do the other stuffs I need.
Anyways, I'm struggle on authentication? How do I take the same idea from web browser and allow my app to login with user credential and pull various information? Groupon has the API. But it seems to be specific to a client key (ie. Look at your own stuffs only)
If someone can point me to some directions, or if you wrote similar codes and could share, I would really appreciate it. I'm looking to the same authentication with living social as well.
Thank you for your time
Jack

Here is an example of how to access a web-service using Android's api's.
Authentication shouldn't be especially difficult.

Related

How does a website and android app connects?

I am new in android development and i have been developing android apps using cloud firebase but how can i make an app for a website which is not using firebase. I know i need to connect to its database but what if the website is hosted on wordpress.com which does not provide phpmyadmin. So is there any other way? I know there is something called rest api. Can we use rest api in websites that are developed in some framework like codeignitor? Please explain what rest api is and is there any other way to get the data for our app? Please let me know thank you.
This is going to be tough. Usually, an application communicate with a web service. A web service may be a Rest API, Firebase or any hosted service that can provide data (I don't know all of the subtilities of it).
Explaining to you how all of this works wouldn't work here as it will be objective as every application have different needs and every developper have preferences on how he want his application to communicate with the world.
One thing you should avoid at all costs would be to access an online database directly from your application as it is a huge security flaw.
Here are some links that will help you understand better all of this.
REST API concepts and examples
Make an HTTP request with Android
Web services explained
I am well aware that stackoverflow answer shouldn't be mainly links but I still thinks that they will be relevant to your problem. Be aware that this answer doesn't even cover a little part of communication between an application an a webservice. You'll have to learn that by yourself, using courses and tutorials.

Facebook Signin in a mobile App (backed by a REST API)

I have done some researching but I haven't find a clean explanation of how it all work.
I would like to know how does applicationa like Instagram, Wordcrack (online game), AirBnb and many other app have tier "Login with Facebook" done?
I currently work on the Java REST services that backups up an iOS app.
If some one already has done a similar things in their app/server I would really appreciate some help
I'm not looking for ready to use code answer but more of a general idea of the architecture to achieve this.
thank you!
I've done it in JavaScript, but the principle will surely be the same.
You have an API, provided by facebook. There are some information there :
https://developers.facebook.com/docs/apis-and-sdks#third-party-sdks
And, more than that, you have declare your own app on facebook. This has, for me, 2 goals :
provide the url of your server, so when you'll call facebook with the
login information, he will know where to redirect
specify the access your app need.
When i've begun to watch this, i've discovered satellizer. I think that's a good entry point to understand how it works with an example :
https://github.com/sahat/satellizer
Hope this help.
Supporting login through their website (Facebook,Twitter,Instagram etc) allows a user to use his already active profile to signup to a portal or an app. This way a user experience is enhanced and having to have separate login credentials for different apps and sites are reduced.
A developer utilizes the APIs or SDKs that these social networks expose to let you integrate it in your app and provide an easy sign up process to your users.

creating a custom user database in GAE Java

This is my first time attempting to make a custom user database. I am trying to make a customer user database in Java in the google app engine - I understand that GAE offers a user openID service, however, this does not work for this application.
Can anyone point me in the direction of somewhere or give me the basics behind designing a custom user database for Java in GAE, how to check people are logged in etc etc? Or any other useful places that will help me on my quest.
Cheers
You can look at this boilerplate for inspiration:
https://github.com/davps/Spring3-GAE-boilerplate
That said, you don't need to use OpenID with Google's user service. See the available authentication options here:
https://developers.google.com/appengine/docs/java/users/#Java_Authentication_options

Struts2 Login/Register with facebook

I've recently found an open source library that does, post on a users facebook wall(restfb and facebook4j)
All of them does the necessary things, but there's one thing left I need to do and that is to login and register users to my web application using their facebook account. are there any related frameworks for such task? if not, please provide alternative solutions
If i am correct in my understanding, all you want is to use Oauth or Open Id system to let user register and login to your website using Facebook or any other such service provider.
If i am correct in my understanding, there is a very good library which is quite easy to use and very light weight.
Scribe-Java
It also contains few examples which shows how to use it and how it works, let us know if this is what you are looking.

How do i integrate paypal in my website? Java

I want to integrate paypal in my java web application. I saw that they offer many methods to accomplish this. But i want my visitors to remain on my site only. My friend told me that Paypal offers webservice. But i can't seem to find any documentation on Paypal site. If anybody could help me with this, i would be really very grateful. Please offer me the relevant links on Paypal where i could read and get my things done.
Secondly, my friend also told me that we need to give location to paypal where my visitors would be redirected once paypal payment is complete. But i am confused. I am working on localhost. How would Paypal know about my localhost?
I have already created my sandbox testing account. What should be my next step. Please explain me in detail. I don't know anything about Paypal. Once i created a demo application of Express checkout where they give a simple button of Pay Now and on clicking on it shopping cart etc appears. But now i want my visitors to stay on same website.
Thanks in advance :)
Website Payments Standard:
https://www.x.com/community/ppx/wps
PayPal Tools for Developers:
https://www.x.com/community/ppx/dev-tools

Categories

Resources