Getting a message from social network through restful webService - java

I've a requirement to get a message posted by a normal user and following a specific discussion going on in private social network(Hum-hub). I'm looking for Java Api used in this
issue . basically i need to create rest service to get those messages and display in admin dashboard.
can, anybody help me in this issue? Thanks Rajan

Related

How can I authenticate a Reddit user for my application?

I am making a desktop application for Reddit in Java. I want to let users log in to their Reddit account via my application so that they can do things on Reddit. I know that I need to get access tokens and whatnot but I don't know how to go through the process of doing that. Whenever I have accessed the API previously, it has been in Python using PRAW, so I would manually enter in the client id and client secret - obviously I can't be doing this for a professional application. I'd appreciate it if anyone would guide me through the process of authenticating the user and how to receive and use the access token.
You have to use oauth apis. There is a sample integration for reddit. https://www.e4developer.com/2018/11/04/reddit-api-authentication-with-java-spring/
also there are developer guide for oauth in reddit page
https://reddit.com/dev/api/oauth
Reddit github page have good documentation
https://github.com/reddit-archive/reddit/wiki/OAuth2

PayPal: IPN/REST/Webhooks integration with Java Program

I have been doing research for a couple of hours and haven't found any viable examples or information on how I could receive PayPal notifications for payments and process them within a Java Application.
What I want to do is:
Person makes payment.
PayPal sends a notification to the java program, indicating that they had made a payment, with email, usernames, amount, package name/ID, etc.
Java program processes the payment.
Perhaps I am looking at it the wrong way. So far I have found out that I need a webhook listener or some kind of IPN serverlet program that can read the POST messages PayPal sends and redirect them? Can't this be done directly within my java program?
Thank you!
As you've found, you really need to use Webhook (which is newer in PayPal) or IPN. This technologies let you to configure PayPal to send (as POST requests) certain events on a certain URLs. All you need to do in your program is to handle this events (requests) in Serlvet, RestHandler or whatever else.

How to create mailer service in Java

I'm working on webApp which one's feature will be to send invitation links to users by emails. I read about JavaMail but when I was testing this solution I noticed that it was working very slow. I was sending emails by my private gmail account and each email before send was authenticated and making this all magic staff which takes a lot of time.
So my questin is - how to do it properly? How to send thic invitation links faster? Maybe I need to buy some external smpt service or something like this? I'm totally newbie in this things so please just show me the way.
Thanks

android check if request is coming from my app

The application I'm creating is supposed to allow client to send some feedback to server, so I make a simple httprequest with my feedback and other information in it, but I wanna make sure that request can only come my application, the rest should be rejected. So what are my choices?
Thank you for your helpful directions in advance.
P.s: I'm not asking for code, just the best practice.
I have looked for the same thing and what is possible is to force the app users to sign in with their Google account and then you can get verification via tokens that the call came from your app as described here:https://developers.google.com/identity/sign-in/android/backend-auth
That there isn't an option without having users sign in is disappointing.

Send Facebook Message using Spring Social

Is it possible to send Facebook Messages (NOT on their wall, but a "Message") to friends using Spring Social?
If yes, which API do I use? If there is no such support in Spring Social, what's the best way to do so from a Java application?
The best way out that I could think of is to send an email at the ID : {facebook-id}#facebook.com, as it ultimately sends a Facebook message to the user.
For what I know, Facebook doesn't allow to send messages (and also asking friendship) with its API. So I think that you can't send messages to Facebook in a clean way. What you can do is make a bot that navigate the page on the server side and click buttons without user interaction. But I think that it's not so legal...
I would take a look at this site
http://www.springsource.org/
This website has all the information you need to get started with SpringSource. Here's a link to their forums
http://forum.springsource.org/index.php

Categories

Resources