Hi,
This code should help:
import com.google.gdata.data.appsforyourdomain.provisioning.UserEntry;
import com.google.gdata.client.*;
import com.google.gdata.client.appsforyourdomain.UserService;
import
com.google.gdata.client.appsforyourdomain.AppsForYourDomainService;
public class SuperToken {
public static void main(String[] arg) throws Exception {
UserService userService = new UserService("apps");
String token = userService.getAuthToken("[EMAIL PROTECTED]",
"Password, null, null, AppsForYourDomainService.APPS_SERVICE, "apps");
System.out.println("Auth Token: " + token );
}
}
Cheers,
Julian
On Sep 9, 10:14 pm, "Abraham Segura" <[EMAIL PROTECTED]> wrote:
> Hi, group does anyone has a sample to get the Token, I try but I´m new in
> Java and i can´t take the token, and i try the sample but i dont see anyone
> to login and get Token like PHP.
>
> Regards
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Apps APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-apps-apis?hl=en
-~----------~----~----~----~------~----~------~--~---