title: Facing issue in google people api format issue "googleapiclient.errors.UnknownApiNameOrVersion: name: people version: v1"
body: <p>I tried to update the email address using people api (python). here is my code. please suggest me the correct format to update the email address to the existing contacts.</p>
  <pre><code>service = discovery.build('people', 'v1', http=http, discoveryServiceUrl='https://people.googleapis.com/$discovery/rest:updateContact?updatePersonFields=emailAddresses')   
      service.people().updateContact(
          resourceName=profileCode,
          body={&quot;resourceName&quot;: profileCode, &quot;etag&quot;: accessToken},
          updatePersonFields='test@gmail.com',
      ).execute()
  </code></pre>
  <p>Here is my Code, can you please correct me.</p>
  <pre><code>FLOW = OAuth2WebServerFlow(
      client_id='1*****.apps.googleusercontent.com',
      client_secret='Secret',
      scope='https://www.googleapis.com/auth/contacts',
      user_agent='contact_cms/YOUR_APPLICATION_VERSION')
  
  
  def get_credentials(FLOW):
      storage = Storage('info.dat')
      credentials = storage.get()
      if credentials is None or credentials.invalid == True:
          credentials = tools.run_flow(FLOW, storage)
      return credentials
  
  def get_http(credentials):
      http = httplib2.Http()
      http = credentials.authorize(http)
      return http
  
  def update_a_google_contact(http):
      profileCode = 'people/c3022811234561887053'
      etag = '%EgU3AQI9abcdefMczZ1V0tVV1hubW89'
  
      service = discovery.build('people', 'v1', http=http, discoveryServiceUrl='https://people.googleapis.com/$discovery/rest')
      service.people().updateContact(
          resourceName=profileCode,
          body={&quot;resourceName&quot;: profileCode, &quot;etag&quot;: etag, &quot;updatePersonFields=emailAddresses&quot;: [{ &quot;value&quot;: &quot;test@gmail.com&quot; }]}
      ).execute()
  
  def main():
      creds=get_credentials(FLOW)
      http=get_http(creds)
      update_a_google_contact(http)
      
  if __name__ == '__main__':
      main()
  </code></pre>