Patty wrote:
> Hi everyone!
>
> I need to upload contacts shared domain "midominio.com", use this code
> (CSharp .Net):
>
> ContactsService service = new ContactsService("Test");
> service.setUserCredentials("[email protected]", "xxxxxxxxx");
>
> ContactEntry newEntry = new ContactEntry();
> newEntry.Title.Text = nombre;
>
> EMail primaryEmail = new EMail(mail);
> primaryEmail.Primary = true;
> primaryEmail.Rel = ContactsRelationships.IsWork;
> newEntry.Emails.Add(primaryEmail);
>
> Uri feedUri = new Uri(ContactsQuery.CreateContactsUri
> ("midominio.com"));
> ContactEntry createdEntry = (ContactEntry)service.Insert(feedUri,
> newEntry);
>
>
> But I see they are and not return error load. It may be problem of
> delay?
> How long should I wait for check?
>
It can take about a day for them to show up in the email interface. This
is for shared contacts?
When I set up my shared contacts, I added this little bit of code:
ContactsQuery query = new ContactsQuery();
query.Uri = contactUri;
query.ExtraParameters = "max-results=300";
ContactsFeed feed = service.Query(query);
foreach (ContactEntry e in feed.Entries)
{
s = e.Title.Text.PadRight(80);
foreach (EMail email in e.Emails)
{
s = s + email.Address + "\t";
}
LogLine(s);
}
LogLine(string x) just prints the line of text <x> to a file.
Those showed up right away, if I remember correctly. It was a couple of
months ago and I've gone on to other confusions :)
HTH.
--
Andre -- Yes, there _are_ stupid questions.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Contacts API" 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-contacts-api?hl=en
-~----------~----~----~----~------~----~------~--~---