com.ning.api.client.sample.ManualShowSingleUser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ning-api-java Show documentation
Show all versions of ning-api-java Show documentation
Java client library for accessing Ning external API
package com.ning.api.client.sample;
import com.ning.api.client.access.NingConnection;
import com.ning.api.client.item.User;
import com.ning.api.client.item.UserField;
public class ManualShowSingleUser extends SampleIntermediate
{
public void doAction(NingConnection conn) throws Exception
{
User user = null;
try {
// fields == null -> get whatever you get
// user = conn.users().finder(null).find("NingDev");
user = conn.users().finder(UserField.email).find("NingDev");
} catch (Exception e) {
System.err.println("Failed, problem = "+e);
System.exit(1);
}
System.out.println("Call result: user = "+user);
}
public static void main(String[] args) throws Exception {
new ManualShowSingleUser().action();
}
}