xamarin.ios - Adding a Contact with the Google Contacts .NET API -


i using following code add contact, following unhandled exception: google.gdata.client.gdatarequestexception: execution of request failed: http://www.google.com/m8/feeds/contacts/default/full

        gdatacredentials mycred = new gdatacredentials("myusername", "mypassword");         requestsettings myrequestsettings = new requestsettings("macpapa-googlecodetest3-1", mycred);         contactsrequest mycontactrequest = new contactsrequest(myrequestsettings);          contact mycontact = new contact();         mycontact.title = "be dazzle";         phonenumber myphonenumber = new phonenumber("805-453-6688");         myphonenumber.rel = contactsrelationships.isgeneral;         myphonenumber.primary = true;         mycontact.phonenumbers.add(myphonenumber);          email myemail = new email("man@gmail.com", contactsrelationships.ishome);         email myemail2 = new email("mantest@gmail.com", contactsrelationships.iswork);         myemail.primary = true;         mycontact.emails.add(myemail);         mycontact.emails.add(myemail2);          postaladdress postaladdress = new postaladdress();         postaladdress.value = "123 somewhere lane";         postaladdress.primary = true;         postaladdress.rel = contactsrelationships.ishome;         mycontact.postaladdresses.add(postaladdress);           uri feeduri = new uri(contactsquery.createcontactsuri("default"));         contact createdcontact = mycontactrequest.insert<contact>(feeduri, mycontact); 

any suggestions?

could monotouch (based on mono) problem google api; see this post.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -