Error 404 Api de contactos

54 views
Skip to first unread message

fox666

unread,
Mar 25, 2008, 11:59:27 PM3/25/08
to Google Data API
Al intentar recuperar los contactos en c# me da el siguiente error:

Error processing request: Google.GData.Client.GDataRequestException:
Execution of request failed: http://www.google.com/m8/contacts/feeds/edwin.mond...@gmail.com/base
---> System.Net.WebException: Error en el servidor remoto: (404) No
se
encontró. en System.Net.HttpWebRequest.GetResponse() en
Google.GData.Client.GDataRequest.Execute() --- Fin del seguimiento de
la pila de la excepción interna --- en
Google.GData.Client.Service.Query(Uri queryUri, DateTime
ifModifiedSince) en Google.GData.Client.Service.Query(FeedQuery
feedQuery, DateTime ifModifiedSince) en
Google.GData.Client.Service.Query(FeedQuery feedQuery) en
ASP.contactos_aspx.PrintContact() en


El codigo que uso es:
GAuthSubRequestFactory authFactory = new
GAuthSubRequestFactory("cp", "Tigabytes");
authFactory.Token = (String) Session["token"];


// Service ServiceContact = new
Service(authFactory.ApplicationName);
Service ServiceContact = new Service("cp", "prueba-
contactTest-1");
ServiceContact.setUserCredentials("correo", "clave");
ServiceContact.SetAuthenticationToken(authFactory.Token);
// ServiceContact.RequestFactory = authFactory;
Google.GData.Client.FeedQuery query= new FeedQuery();


query.Uri = new Uri("http://www.google.com/m8/contacts/feeds/
tgad...@edu.tigabytes.com/base");


try
{
AtomFeed calFeed = ServiceContact.Query(query);


Jeff Fisher (Google)

unread,
Mar 26, 2008, 11:58:36 AM3/26/08
to Google Data API
Hi,

For support using the Contacts API please visit the Contacts forum:

http://groups.google.com/group/google-contacts-api

The following was translated with http://translate.google.com/translate_t?langpair=en|es
and may be weird sounding:


Para apoyar los contactos usando la API por favor visite el foro
Contactos:

http://groups.google.com/group/google-contacts-api

Cheers,
-Jeff

fox666

unread,
Mar 27, 2008, 12:14:54 PM3/27/08
to Google Data API
tks, but now have new problem, return Error 401 , my string
authentification is with : "AuthSubRequest" return a token, after
written

GAuthSubRequestFactory authFactory = new GAuthSubRequestFactory("cp",
"Tigabytes");
authFactory.Token = (String) Session["token"];

// Service ServiceContact = new
Service(authFactory.ApplicationName);
Service ServiceContact = new Service("cp", "prueba-
contactTest-1");
ServiceContact.setUserCredentials("edwin.mondaca%40gmail.com",
"edwin1148");
ServiceContact.SetAuthenticationToken(authFactory.Token);
// ServiceContact.RequestFactory = authFactory;
Google.GData.Client.FeedQuery query= new FeedQuery();

//query.Uri = new Uri("http://www.google.com/m8/feeds/contacts/
edwin....@gmail.com/base");
query.Uri = new Uri("http://www.google.com/m8/feeds/default/
base");

and so.... Error Number 401 :
somebody nows whatfuck going on






On 26 mar, 12:58, "Jeff Fisher (Google)" <api.jfis...@google.com>
wrote:
> Hi,
>
> For support using the Contacts API please visit the Contacts forum:
>
> http://groups.google.com/group/google-contacts-api
>
> The following was translated withhttp://translate.google.com/translate_t?langpair=en|es
> >           AtomFeed calFeed = ServiceContact.Query(query);- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -
Reply all
Reply to author
Forward
0 new messages