Yes I know that part,

thanks your help =D..

But the problem is the following.

How to install automatically and get the token ( i can install application
but before i need set the consumer key and cosumer secret manual way in
web.xml.

for example:

 public void init(ServletConfig config) throws ServletException {
        super.init(config);

        String consumerKey = getInitParameter("consumer_key");
<<<<<<<-----  HEREE   1----->>>>>>>>>>>>>
        String consumerSecret = getInitParameter("consumer_secret");
<<<<<<<-----
HEREE   2 ----->>>>>>>>>>>>>

         novoLog =
Logger.getLogger(CalendarServlet.class.getName());
         novoLog.warning(consumerKey);
        novoLog.warning(consumerSecret);


        GoogleOAuthParameters oauthParameters = new GoogleOAuthParameters();
        oauthParameters.setOAuthConsumerKey(consumerKey);
        oauthParameters.setOAuthConsumerSecret(consumerSecret);
        oauthParameters.setScope("https://www.google.com/calendar/feeds/";);
        calendarService = new CalendarService("marketplace-hello");
        try {
            calendarService.setOAuthCredentials(oauthParameters, new
OAuthHmacSha1Signer());

            CalendarEntry calendar = new CalendarEntry();
            calendar.setTitle(new PlainTextConstruct("Little League
Schedule"));
            calendar.setSummary(new PlainTextConstruct("This calendar
contains the practice schedule and game times."));
            calendar.setTimeZone(new
TimeZoneProperty("America/Los_Angeles"));
            calendar.setHidden(HiddenProperty.FALSE);
            calendar.setColor(new ColorProperty("#2952A3"));
            calendar.addLocation(new Where("","","Oakland"));
            //calendar.servico();

HERE 1 - >>  <init-param>
            <param-name>consumer_key</param-name>
            <param-value>appsdomaintests.com</param-value>
        </init-param>


HERE 2 ->>    <init-param>
            <param-name>consumer_secret</param-name>
            <param-value>AaAaAaAaAaAa1a2A3a4A5a</param-value>   <<<---
GET automatically
is possible ?
        </init-param>



I had to manually set those strings to run the same application in the
market place ...

to buy the application I am not able to get the token from the domain,
anyone know a manual way to do it?

or can someone help?

Thanks.


2011/4/25 Gopal Patel <[email protected]>

> the key you get when testing oauth is different from what you will get for
> a
> approved app for google apps.
>
> and that same key can be used for all application that are installed
> my their respective
> domain admin.
>
> On Mon, Apr 25, 2011 at 6:09 PM, Felipe Teixeira
> <[email protected]> wrote:
> > Hi,
> >
> > How i can get secret key with any domain in marketplace ,
> >
> > e.g : Consumer pay to get my application , send to application your
> domainm,
> > and the next stop is autentication
> >
> > account with admin , to get secret key and insert in application.
> >
> >
> > P.s : I already can use the marketplace, but secret key manually by
> setting
> > the app, wondered how to retrieve it automatically.
> >
> >
> > thanks
> >
> > --
> > Felipe Teixeira
> > Desenvolvedor Java
> > IPNET - Soluções  em Informática
> > Tel.: 55 21 3553 2717 / 21-7805-6867
> > Rua Visconde de Inhaúma, 134, Sala 615
> > Centro - RJ - CEP: 20091-007
> > http://www.ipnetsolucoes.com.br
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" 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-appengine?hl=en.
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" 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-appengine?hl=en.
>
>


-- 
*Felipe Teixeira*
*Desenvolvedor Java
*
IPNET - Soluções  em Informática
Tel.: 55 21 3553 2717 / 21-7805-6867
Rua Visconde de Inhaúma, 134, Sala 615
Centro - RJ - CEP: 20091-007
*http://www.ipnetsolucoes.com.br *

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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-appengine?hl=en.

Reply via email to