Hello Felipe, I'm glad this is working again. The issue you had might have been due to a temporary network outage in either our server's end or your end (or your ISP).
Best, Alain On Wed, Nov 2, 2011 at 11:08 AM, Felipe Teixeira < [email protected]> wrote: > Hi Alain, > > Yesterday at 19:00 all was back to work again. > > I develop using google apis a good time, and it never happened, > contacting customers asking what had happened and did not know what to > tell the same ... > > I used all kinds of google api autentications, simple autentication, > atentication oauth, openid + oauth autentication, marketplace google > apps + openid + oauth and others .... > > Below are some examples: > > > //Contacts Api - Using simple autentication > ...... > } > String aniversario = anoNiverContato+"-"+mesNiverContato > +"-"+diaNiverContato; > senha = decript(senha); > ContactsService servico = new > ContactsService("AppContatos") ; > try { > servico.setUserCredentials(emaildono, senha); > } catch (AuthenticationException e) { > System.out.println("Usuário não autenticado"); > e.printStackTrace(); > } > > > > > //Contacts Api - Simple autentication - (C#) .net > ... > RequestSettings settings = login(txtUsername.Text, txtPassword.Text, > domain); > ContactsRequest cr = new > ContactsRequest(settings); > > for (int i = 0; i < > lstContacts.SelectedItems.Count; i++) > { > Contact contact = cr.Retrieve<Contact>(new > Uri(lstContacts.SelectedItems[i].Tag.ToString())); > > cr.Delete(contact); > } > > MessageBox.Show("OK!", this.Text, > MessageBoxButtons.OK); > btLoad_Click(sender, e); > } > ...... > > > > > //Contacts Using OAuth java > public ContactsService autenticaUsuario(String emailDono){ > String[] dominio = emailDono.split("@"); > GoogleOAuthParameters > oauthParameters = new GoogleOAuthParameters(); > oauthParameters.setOAuthConsumerKey(" > 989030251387.apps.googleusercontent.com"); > oauthParameters.setOAuthConsumerSecret("xxxxxxxxxxxxxxxxxx"); > oauthParameters.setScope("http://www.google.com/m8/feeds/"); > OAuthHmacSha1Signer signer = new OAuthHmacSha1Signer(); > ContactsService servico = new ContactsService("Geca"); > servico.useSsl(); try { > servico.setOAuthCredentials(oauthParameters, signer); } > catch > (OAuthException e) { // TODO Auto-generated > catch block > e.printStackTrace(); } > > > > //DocList Api - Using Java - Simple Autentication > > ...... > DocsService docsService= new DocsService("gae1"); > DocsService docsCheck = > (DocsService)req.getSession().getAttribute("docsService"); > DocsDAO servico = null; > > > try { > > if(docsCheck == null){ > docsService.setUserCredentials(login, senha); > servico = new DocsDAO(docsService); > req.getSession().setAttribute("docsService", > docsService); > } > else{ > servico = new DocsDAO(docsCheck); > > req.getSession().setAttribute("docsService", docsCheck); > } > > > List<DocumentListEntry> lista = servico.listaDocs(); > ...... > > > > > //DocList Api - Using java - Simple Autentication > > .... > String username=req.getParameter("usuario"); > > String password = req.getParameter("senha"); > > DocsService client = new DocsService("app"); > > try { > client.setUserCredentials(username,password); > > resp.getWriter().print(client.getStrictValidation()); > > > } catch (AuthenticationException e) { > > > > //GmailSettings - Using Java - Simple autentication > try { > GmailSettingsService servico = new > GmailSettingsService("ap", > domain, admin, senha); > //System.out.println("OK"); > users.add(0, log); > servico.createLabel(users, label); > > > > //Audit Admin Api - Using python > ... > LAGS = gflags.FLAGS > FLOW = OAuth2WebServerFlow( > client_id='989030251387.apps.googleusercontent.com', > client_secret='xxxxxxxxxxxxxxxxxxxxxxxxxxxx', scope='https:// > www.googleapis.com/auth/apps/reporting/audit.readonly', > user_agent='audit-cmdline-sample/1.0') > ... > storage = Storage('audit.dat') credentials = storage.get() > > if not credentials or credentials.invalid: credentials = > run(FLOW, storage) > # Create an httplib2.Http object to handle our HTTP requests and > authorize it > # with our good Credentials. > > http = httplib2.Http() http = credentials.authorize(http) service > = build('audit', 'v1', http=http) try: activities = > service.activities() > > > > > Alain, as listed above, > can verify that my team and using all types autentication many google > apis, those presented above and others that have not listed here, my > company is too Google Partner, Reseller and Google apps, you know some > channel of communication we may have to google for a support with > problems such as apis happen? > > As also noted above, all applications at 19:00 back to work without > anything being changed in their source code. > thank you > > On 2 nov, 14:29, Alain Vongsouvanh <[email protected]> wrote: > > Hello Felipe, > > > > Could you tell us what authorization mechanism you are using? If you > could > > share with us the part of your code that gets the error, that would help > us > > investigate your issue. > > > > Best, > > Alain > > > > On Tue, Nov 1, 2011 at 2:04 PM, Felipe Teixeira < > > > > > > > > > > > > > > > > > > > > [email protected]> wrote: > > > I have problems with application using Google Apis and today i cant > > > make autentication in any apis > > > > > All send me error ... Autentication Exception... > > > > > Projects that were running today stopped working .... someone help > > > me?????] > > > > > Thanks... > > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Google Contacts, Shared Contacts and User Profiles 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://code.google.com/apis/contacts/community/forum.html > > > > -- > > Alain Vongsouvanh | Developer Programs Engineer > > -- > You received this message because you are subscribed to the Google > Groups "Google Contacts, Shared Contacts and User Profiles 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://code.google.com/apis/contacts/community/forum.html > -- Alain Vongsouvanh | Developer Programs Engineer -- You received this message because you are subscribed to the Google Groups "Google Contacts, Shared Contacts and User Profiles 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://code.google.com/apis/contacts/community/forum.html
