How to create User in SalesForce through Resut API? - java

I am working on SalersForce I want to create a User in SalesForce by using Java,How can I do that and what is the steps I have to follow. any one please help me

This might help get you started, "Create Users Automatically Through the REST API" http://www.salesforce.com/us/developer/docs/workbook_security/Content/create_users_2.htm

Related

Is there a way to restore recently-deleted user using Java from Azure AD?

Title I guess is self explanatory.
I haven't tried anything yet as I haven't seen a sample approach from Microsoft.
The end result should be that when I go to Azure portal and go to Active directory, the user deleted will be back in the Active Users list (Removed from "Deleted Users").
Thanks!
You can use Microsoft Graph SDK for Java to do this.
graphClient.directory().deletedItems("{deletedItemId}").restore();
Or you can call graph api directly.
POST /directory/deletedItems/{id}/restore

Handle facebook confirmation popup from rest service

I have following requirement,Through rest service,I need to fetch feed from facebook and store in db.I have to do this for every one hour.
I have created App in Graph_Api,when i want to communicate with graph api for the first time, below mentioned pop-up is coming. As i told you, i am doing from backend so no manual interaction to click on Continue as DevSample. Is there any way to get out of this through rest? please suggest
Any help would be appreciated.

compatibility between React.JS and java

I have a question that tapped me. can someone help?
Here is my question:
can react front end be used with java?
If yes How is it possible?
Thank you in advance
Yes it is possible to use react front end and java as back end.
Let us assume you want to build simple school management application with following feature.
In home page we want to show simple three tab student teacher and admin.By clicking over each tab it should show a page containg that partucular user realted data(userName, picture, address).
We will be having simple Mysql database to store user information.
Use React:
To build this I will use express as framework to use React.In React I will be having component HomePage and UserInfo.
When we click any tab on home page we need to fetch data from database.
To call an external api I will use redux and save data in redux store.
Your frontend will be running on express(assume on localhost:3000)
Use Java:
As backend Let us assume we want some manipulation of data so we will use java(use jersey to make rest apis).In java we can make connection to database and fetch data.Using java we will make a post api taking user type which return user data in json format.This json will be stored in redux store.So in new page after clicking I will iterarte through this data and show in page.
Your backend in java will be running on tomcat(assume on localhost:8000)
Yes of course, in fact java and react or any other front-end technologies should not have a problem communicating to each other. You may want to do some readings on Representational state transfer (REST).

Can we fetch mails from inbuilt email app?

Is there any way fetch the mails from the inbuilt Email app that comes with the android device itself? Please note that I am not referring to the Gmail app. ??? If yes then please give a hint about it.
As per my research till now m not able to find any way to do this.
Thanks in advance....
This would only be possible for applications that expose this data via some form of API. The Email application that is part of the Android open source project has no documented or supported API of this type.

Get location information from twitter using processing

I'm trying to write a program in processing that can get a location from the user who is using Twitter. In every twitter profile there is information where they live like "New York, NY". I figuered out that I will need to use Twitter4J to do this, but what im really asking, is it possible to get a users location from their profile? or is it limited to only induvidual tweets?
I don't expect a full code as an answer but if somebody can point me in the right direction it would be great!
I can suggest also using
https://github.com/fernandezpablo85/scribe-java
for OAuth integration (very easy to integrate and extend) and then load user profile.
twitter user profile contains all details, including user's location, see example below
...
"location":"Oslo, Norway"
,"geo_enabled":true
...
see twitter api -> https://dev.twitter.com/docs/api/1/get/users/show

Categories