Thanks, for your help I will do that, and another example did you have some
example for create a user account.
Regards
On Mon, Sep 15, 2008 at 3:39 AM, Julian (Google) <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> You may need to set the classpath for the libraries. For example, save
> the code as SuperToken.java and then run the code just outside the
> gdata folder from the library, with the following two lines:
>
> javac -classpath gdata/java/lib/gdata-appsforyourdomain-1.0.jar:gdata/
> java/lib/gdata-client-1.0.jar:gdata/java/sample/appsforyourdomain/lib/
> AppsForYourDomainClient.jar:. SuperToken.java
>
> java -classpath gdata/java/lib/gdata-appsforyourdomain-1.0.jar:gdata/
> java/lib/gdata-client-1.0.jar:gdata/java/sample/appsforyourdomain/lib/
> AppsForYourDomainClient.jar:. SuperToken
>
> Cheers,
> Julian
>
> On Sep 12, 11:44 pm, "Abraham Segura" <[EMAIL PROTECTED]>
> wrote:
> > Julian i have this error when I compile could you help me:
> >
> > package com.google.gdata.data.appsforyourdomain.provisioning does not
> exist
> > import com.google.gdata.data.appsforyourdomain.provisioning.UserEntry;
> > ^
> > package com.google.gdata.client does not exist
> > import com.google.gdata.client.*;
> > ^
> > package com.google.gdata.client.appsforyourdomain does not exist
> > import com.google.gdata.client.appsforyourdomain.UserService;
> > ^
> > package com.google.gdata.client.appsforyourdomain does not exist
> > import
> com.google.gdata.client.appsforyourdomain.AppsForYourDomainService;
> > ^
> > cannot find symbol
> > symbol : class UserService
> > location: class SuperToken
> > UserService userService = new UserService("apps");
> > ^
> > cannot find symbol
> > symbol : class UserService
> > location: class SuperToken
> > UserService userService = new UserService("apps");
> > ^
> > 6 errors
> >
> > On Thu, Sep 11, 2008 at 3:38 AM, Julian (Google) <[EMAIL PROTECTED]>
> wrote:
> >
> > > 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
-~----------~----~----~----~------~----~------~--~---