title: Excel File from Gmail API Request
body: <p>I have created a program which gets attachment ids for files in an email and then gets the attachment using the Gmail. The type of files I'm interested in getting are Excel files, so assume that I get an attachment that is a .xlsx. </p>
  
  <p>According to the API reference <a href="https://developers.google.com/gmail/api/v1/reference/users/messages/attachments" rel="nofollow noreferrer">here</a> the field I need from the response is Data. I am able to get this field in C# but I am stuck turning this into an excel file.  </p>
  
  <p>Any examples would be most helpful in Python or C#.</p>