google-api-dotnet-client

Gmail API - The format of value '= Get Labels google-api-dotnet-client/1.25.0.0 (gzip)' is invalid

老子叫甜甜 提交于 2021-02-05 08:13:52
问题 I started exploring Gmail API. I followed the tutorial to show labels list (https://developers.google.com/gmail/api/quickstart/dotnet), and worked fine. HELP is highly appreciated When I modified the flow of program, here it gives me the error. I cannot trace the error. It gives me error on Execute() method. Error: The format of value '= Get Labels google-api-dotnet-client/1.25.0.0 (gzip)' is invalid here is my code. public static class Labels { public static void ListLabels ( ) { try { var

Google Drive API upload Fails after hosting it to IIS. showing the error as Failed to launch the Browser with

爱⌒轻易说出口 提交于 2021-02-05 08:00:07
问题 I am using google external login in my application, and I need a functionality that user can upload images from the application to his google drive. In my localhost code the google drive file uploading functionality working fine, after hosting it to IIS user unable to upload the image. I have created an error log file. in that I found the below exception: System.AggregateException: One or more errors occurred. ---> System.NotSupportedException: Failed to launch browser with "https://accounts

How can I set the time zone as null in Google Calendar Integration?

岁酱吖の 提交于 2021-01-28 07:01:23
问题 I have written a code in ASP.NET MVC that integrates with google calendar API and sets an event into the user's calendar. My Code is : public static string CreateEvent(CalendarEventViewModel model) { string Id = ""; // List events. Event newEvent = new Event() { Summary = model.Summary, Location = model.Location, Description = model.Description, Start = new EventDateTime() { DateTime = DateTime.Parse(model.StartDateTime), TimeZone = "America/Los_Angeles", }, End = new EventDateTime() {

Conditional formatting requests in Google Sheets in .NET client

巧了我就是萌 提交于 2021-01-28 04:54:10
问题 I know how to do batch spreadsheet update requests for values and other formatting in the Google Sheets API, but conditional formatting seems to be different. I have the request set up properly: AddConditionalFormatRuleRequest formatRequest = new AddConditionalFormatRuleRequest { Rule = new ConditionalFormatRule { Ranges = new List<GridRange> { new GridRange { // omitted } }, BooleanRule = new BooleanRule { Condition = new BooleanCondition { // omitted }, Format = new CellFormat { // omitted

unable to encode special characters email in right format, gmail api & ae.net.mail

余生颓废 提交于 2021-01-28 03:08:25
问题 I'm working on an application that can send emails out with attachments and it works, until I try special characters æ, ø, å. I played a bit around testing different encodings and it looks like the subject is being encoded in ISO-8859-1 while the rest of the mail is encoded in UTF-8. Here is my method that generates a Google Gmail API message public Message CreateMessage(string to, string from, string body, string subject, GmailService service, string[] files = null, string bcc = null) { AE

Auto Upload of Videos to my account, using youtube Data API V3 without user consent

天大地大妈咪最大 提交于 2021-01-27 14:01:18
问题 I am using Youtube Data API V3 to upload videos to my youtube account using Oauth 2.0 authentication. UserCredential credential; using (var stream = new FileStream("client_secrets.json", FileMode.Open, FileAccess.Read)) { credential = await GoogleWebAuthorizationBroker.AuthorizeAsync( GoogleClientSecrets.Load(stream).Secrets, new[] { YouTubeService.Scope.YoutubeUpload }, "user", CancellationToken.None ); } var youtubeService = new YouTubeService(new BaseClientService.Initializer() {