title: Google calendar api CalendarList List return empty element
body: <p><strong>EDIT:</strong> The original poster asked this for <code>C#</code>, but the same problem occurs regardless of the library used, and its solution is <strong>language independent</strong>.</p>
  
  <p>Using C# lib,</p>
  
  <pre><code>        string service_account = "myaccount@developer.gserviceaccount.com";
  
          var certificate = new X509Certificate2(@"pathtomy-privatekey.p12", "notasecret", X509KeyStorageFlags.Exportable);
  
          ServiceAccountCredential credential = new ServiceAccountCredential(
             new ServiceAccountCredential.Initializer(service_account)
             {
                 Scopes = new[] { CalendarService.Scope.Calendar }
             }.FromCertificate(certificate));
  
  
          // Create the service.
          var service = new CalendarService(new BaseClientService.Initializer()
          {
              HttpClientInitializer = credential,
              ApplicationName = "My project name",
  
          });
  
          var calendarList = service.CalendarList.List().Execute();
          IList&lt;CalendarListEntry&gt; items = calendarList.Items;
  </code></pre>
  
  <p>items is empty. On <a href="https://developers.google.com/google-apps/calendar/v3/reference/calendarList/list" rel="noreferrer">https://developers.google.com/google-apps/calendar/v3/reference/calendarList/list</a>, when I try the api, I get the good result.</p>
  
  <p>I really don't understand why I don't have any result : seems like if the service_account do not have the same calendar as my gmail account linked to.</p>
  
  <p>Any suggestion ?
  Thanks.</p>