How to get and set Google Contacts Custom Fields via API v3.0 (in Ruby) -


i need access , update custom fields of of contacts in google contacts via api (v3). learned (in question) extended properties not same custom fields. question is, how can access , change custom fields programmatically? this question posts solution python using ruby , there no contacts api client ruby.

when retrieving (full) contact via

full_contact = authorization_handler.fetch_protected_resource(     :uri => 'https://www.google.com/m8/feeds/contacts/default/full/1ecdsfslkf',     :header => 'gdata-version: 3.0').body  

i response

{"entry"=>   {"xmlns"=>"http://www.w3.org/2005/atom", "xmlns:batch"=>"http://schemas.google.com/gdata/batch", "xmlns:gcontact"=>"http://schemas.google.com/contact/2008", "xmlns:gd"=>"http://schemas.google.com/g/2005", "id"=>"http://www.google.com/m8/feeds/contacts/abc%40gmail.com/base/1easdc3", "updated"=>"2015-07-21t11:17:39.927z", "category"=>         {"scheme"=>"http://schemas.google.com/g/2005#kind", "term"=>"http://schemas.google.com/contact/2008#contact"},       "title"=>"eli int", "content"=>"designer graphique\ndivers clients\n", "link"=>        [{"rel"=>"http://schemas.google.com/contacts/2008/rel#edit-photo", "type"=>"image/*", "href"=>"https://www.google.com/m8/feeds/photos/media/abc%40gmail.com/1eaddbbdc3/ffksy8puj9sads9g"},          {"rel"=>"http://schemas.google.com/contacts/2008/rel#photo", "type"=>"image/*", "href"=>"https://www.google.com/m8/feeds/photos/media/abc%40gmail.com/1ec3wff0dcbbdc3"},          {"rel"=>"self", "type"=>"application/atom+xml", "href"=>"https://www.google.com/m8/feeds/contacts/abc%40gmail.com/full/1ecwffdcbbdc3"},          {"rel"=>"edit", "type"=>"application/atom+xml", "href"=>"https://www.google.com/m8/feeds/contacts/abc%40gmail.com/full/1edcweffbbdc3/1437477459927001"}],       "organization"=>              {"rel"=>"http://schemas.google.com/g/2005#other", "orgname"=>"asds clients", "orgtitle"=>"designer graphique"},       "email"=>        {"rel"=>"http://schemas.google.com/g/2005#work", "address"=>"el@gmail.com", "primary"=>"true"},       "groupmembershipinfo"=>        [{"deleted"=>"false", "href"=>"http://www.google.com/m8/feeds/groups/abc%40gmail.com/base/171e0f878da9f342"},          {"deleted"=>"false", "href"=>"http://www.google.com/m8/feeds/groups/abc%40gmail.com/base/538dd3c09eb63c1"}], "extendedproperty"=>           {"name"=>"tag:fullcontact.com,2013:contact/extended#x-fc-id-de8asdasd", "value"=>"4fbbcc1f5a517asdasdas48f778_goog"}}} 

.. contact on google contacts web page can see this:

google_contacts_screenshot

there no sign of either linkedin or insight.ly link custom field in response. leads me question: possible want in ruby?


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -