Google Sheets and .NET Core with C#

Поделиться
HTML-код
  • Опубликовано: 29 дек 2024

Комментарии •

  • @htoonlkyaw3753
    @htoonlkyaw3753 2 года назад

    A few days ago, I was busy with google sheet api and learned many tutorials about that. After all, your tutorial is the best!

  • @iliqn20
    @iliqn20 5 лет назад +8

    Amazing! Hands down, the BEST tutorial for Google sheets with C#!

    • @twilio
      @twilio  5 лет назад +1

      Thanks for watching!

  • @AleksandarBulovic
    @AleksandarBulovic 2 года назад

    This video is outstanding, thanks so much! I tried a whole bunch of tutorials and GitHub projects, but none of them came even close to this!

  • @andriibilych
    @andriibilych 5 лет назад +10

    This is so helpful, I can't stress enough. May the success be with you.

  • @bloopydlooper8198
    @bloopydlooper8198 3 года назад +3

    You saved my career and my life. God bless you!

  • @paritoshgavali
    @paritoshgavali 4 года назад +2

    how to do this in Windows Form Application C#.. we don't have a csproj file there..

  • @flamez5493
    @flamez5493 Год назад

    I am in the process of making a Winform app to facilitate data manipulation from a google sheet and this was extremely helpful in setting the environment up!

  • @VinayKumar-by7kh
    @VinayKumar-by7kh 4 года назад +2

    Hi,
    I had build this using Windows Forms, but i have a question that is when we share this code to others then we have to ask the user to create the service credentials.? or is there any Simpler way to do that.
    To make it simpler, can we use our gmail account address Instead of creating google service credentials. We just have to make sure that the user not need to do any manual configuration.?
    Thanks.

  • @fastersixth
    @fastersixth 4 года назад +2

    Thanks. I have a question though @twilio
    What if someone access the file in google sheets the same time you are accessing it via code. Won’t it break? Happened to me several times. Guess going around it by moving all info to sql is the only way?

    • @Siuulolñ
      @Siuulolñ 3 года назад

      Maybe you can create another spreadsheet where you can import and see all the data of the spreadsheet connected to your app

  • @MakeItHappenWithVBA
    @MakeItHappenWithVBA 2 года назад

    You are awesome. Is it possible to connect google sheets and vba?

  • @חייםחדד-ח2מ
    @חייםחדד-ח2מ 5 лет назад +4

    How can I install this API on windows using Visual studio 2019?

    • @HoaQB208
      @HoaQB208 5 лет назад +8

      Tools > Nuget Package Manager > Manage Nuget Package Manages for Solution. Tag 'Browse', type search 'Google Sheets API'

  • @ElysiaGriffin
    @ElysiaGriffin Год назад

    Thanks for putting this video together! It was super helpful in getting my project running with GoogleSheets :)

  • @simonroyjonesuk
    @simonroyjonesuk 2 года назад +2

    Really helpful. Complete information, well presented and easy to understand. Thanks so much. Will use this in a Blazor project.

  • @ByronScottJones
    @ByronScottJones 5 лет назад +5

    Is there a link to the source?

    • @twilio
      @twilio  5 лет назад

      It uses a different spreadsheet but the basics are the same: www.twilio.com/blog/2017/03/google-spreadsheets-and-net-core.html?

  • @Kroama
    @Kroama 2 года назад

    Managed to get it working perfect to the above utilities. One caveat is that i cannot figure out how to remove the entire row, instead of erasing that row of values. Some online searches led me to another format of inputting the dimension ranges with a start and ending index 1 higher than the start... but i barely got this to work.

  • @faisalzubair2612
    @faisalzubair2612 2 года назад

    I want to read data from spreadsheet but with just C#. Do you have any video on it?

  • @_SkyDancer
    @_SkyDancer 3 года назад

    It's all fine but how about I read all sheet to the 'IList' then I remove empty rows and store this List as Source for my DataGrid, and when I want to update some object for example object with index 250 in my 'IList', how the hell can I know the range to update the actual sheet? Is there any way to find the range position according to received IList on read method?

  • @vetok88
    @vetok88 5 лет назад +2

    when i create a project, i dont have any .csproj file!!! what should i do?

    • @twilio
      @twilio  5 лет назад

      What did you run to create the project?

  • @niklasmikkelsen4701
    @niklasmikkelsen4701 4 года назад +1

    Thanks for the video, got me going with what I have in mind!
    Do you know if it's possible to use batch update an append request?

  • @10types
    @10types 2 года назад

    I hope this gets updated so it can be relly useful

  • @Superbbsuper
    @Superbbsuper 3 года назад

    awesome vid thanks a bunch! spent a whole night trying to figure this out on my own and didn't turn out so well so thanks again!

  • @ofbaran
    @ofbaran 3 года назад

    can we used named ranges in this to make it easier?

  • @caglarcansarikaya1550
    @caglarcansarikaya1550 Год назад

    I did everything but always it was giving auth error, I found solition in this video. The missing thing was share doc to client mail. How is that stupid? api access should mean that, I have created owner api access but it has auth error.

  • @alexanderduncan6221
    @alexanderduncan6221 4 года назад +1

    Absolutely amazing video, can you show how to connect mysql to Google sheets ?

  • @jeanmichaelcuevas5297
    @jeanmichaelcuevas5297 2 года назад +1

    Can you make an updated video about this?

    • @jeanmichaelcuevas5297
      @jeanmichaelcuevas5297 2 года назад

      I have an errror sayign "There are no versions available for the package 'Google.api'."

  • @rodrigomoro8047
    @rodrigomoro8047 Год назад

    I have to make a daily insertion of 200 rows in my GoogleSheet, how can I do that without reaching the API requests/minute limitation? I've tried to do a for statement and I've reached the limit. Is it possible to pass multiple row data in just one request?
    Amazing video by the way :)

  • @naninoni7086
    @naninoni7086 2 года назад +1

    Does this still work?

  • @Richard-uk3cr
    @Richard-uk3cr 2 года назад

    Thank you. Better than google's own tutorials.

  • @rasheedmalik6594
    @rasheedmalik6594 3 года назад +1

    It only opens spreadsheets and not word documents and powerpoint files?

    • @twilio
      @twilio  3 года назад +1

      This example is only Google Sheets. There are APIs for documents and slides though as well.

    • @rasheedmalik6594
      @rasheedmalik6594 3 года назад

      @@twilio Thankyou

  • @25kyro
    @25kyro 3 года назад

    How can I insert a column of values?

  • @dungtran-bb8zx
    @dungtran-bb8zx 2 года назад

    Can you make a video tutorial about Google Sheet Api to WindowsForms C#

  • @valentyn4367
    @valentyn4367 2 года назад

    Can I use Google sheets for 1000 clients?

  • @andreasmarty9012
    @andreasmarty9012 3 года назад

    Hi and thanks for the Video! It helps much! Is it possible to search the position of a Name? So i can change perphaps the birthday of mr. Brown?

  • @VISHNUKUMAR-bh8uj
    @VISHNUKUMAR-bh8uj 4 года назад

    How can I create another sheet in the same file?

  • @abhiksingh1999
    @abhiksingh1999 3 года назад

    Moreover, suppose we delete the row in the middle, and when I try to read the whole sheet including the gap one, it's throwing me an exception. S0, how do we remove the white blank space in the middle of the sheets using the code?

  • @الأضواءبالقدرات
    @الأضواءبالقدرات 4 года назад

    can we make it with visual basic .net please ?

  • @נעםשושן-ג8ק
    @נעםשושן-ג8ק 3 года назад

    I am not getting a JSON file when I perform all the steps as in the video
    Do I need an OAuth client ID?
    Because only there I get a json file. but there are bugs...
    Thanks!!

    • @haroldbright1016
      @haroldbright1016 3 года назад +1

      you need to create a api key, which will give you the option to download the json file. please note once downloaded you will not be able to download again; unless a new key is created.

  • @eraybalaban1839
    @eraybalaban1839 6 месяцев назад

    Hello everyone, I have a question. Can anyone help me? I need to make a Windows forms application related to Google Sheets. It will have a simple interface, but I do not know how to proceed.

  • @terrywatts6525
    @terrywatts6525 3 года назад

    Wow! I have been struggling to get that for for days - you did it in seconds - very smart!
    Very clear - this is good video instruction.
    I want more pls!
    Like how to activate a tab in a sheet - it seems to be a nightmare to set active tab in google sheets API

  • @haydarahraze5279
    @haydarahraze5279 4 года назад

    vary nice tutorial what about if I want to use this with WPF? where I can put the TeamGroup ? i try and get an error in var response = request.Execute(); thank you for your time

  • @KarolisBlazevicius
    @KarolisBlazevicius 5 лет назад

    Are you using omnisharp for formatting? Can you share the config?

  • @raymond1489
    @raymond1489 4 года назад

    Thanks for the video. How can i format a cell using c#?

  • @HardwareFreak1
    @HardwareFreak1 5 лет назад +2

    What OS are you using?

    • @twilio
      @twilio  5 лет назад

      This video was created using macOS but it would work exactly the same on Windows.

    • @harcio
      @harcio 5 лет назад

      @@twilio Works on linux :D

  • @leonsmit4703
    @leonsmit4703 4 года назад

    When I try to add the json file it says cp is not recognized as an internal or external command, operable program or batch file

    • @twilio
      @twilio  4 года назад

      You’re looking for “copy” on Windows.

    • @leonsmit4703
      @leonsmit4703 4 года назад

      @@twilio thanks everything works now

  • @walney2008
    @walney2008 4 года назад

    hi, you example write,read,update in php ?

  • @zeironman3934
    @zeironman3934 3 года назад

    Hello, very well explained, everything here and in the blog helped a lot. Though, I have an issue with creating a new worksheet. I managed to create it with a configuration but I can't see to get it to appear in the actual Google sheet. Any way you could answer that?

    • @twilio
      @twilio  3 года назад

      Are you getting an error?

  • @shahzaibhassan6504
    @shahzaibhassan6504 5 лет назад +1

    it says Google.Api package not found?

    • @twilio
      @twilio  5 лет назад

      Sounds like either your Google NuGet packages didn't install correctly or you're missing a namespace declaration.

    • @d.arruda6308
      @d.arruda6308 5 лет назад +5

      I think they split the package,
      try
      Google.Apis.Oauth2.v2
      Google.Apis.Sheets.v4
      For credentials and SheetsService

    • @gabortompos7934
      @gabortompos7934 4 года назад

      @@d.arruda6308 Thank u maan

  • @Vacar13
    @Vacar13 5 лет назад +3

    How update row or column by ID (find in range congress!A:A value "sen" and update range congress!A(row index):Grow (index) value) ?

  • @deepanshukhandelwal3426
    @deepanshukhandelwal3426 3 года назад

    Is it possible to access a row using some field value e.g. by a congressman name?

    • @twilio
      @twilio  3 года назад

      You probably want the GetDataByFilterRequest googleapis.dev/dotnet/Google.Apis.Sheets.v4/latest/api/Google.Apis.Sheets.v4.SpreadsheetsResource.GetByDataFilterRequest.html

  • @bitcoincloudtrader6559
    @bitcoincloudtrader6559 5 лет назад

    Can I write to the sheet from the console? so it would show in my google drive like edited by [console]... Where can I find this tutorial thx

    • @twilio
      @twilio  5 лет назад +1

      You can definitely make edits from a console application. As for making is show up as edited by console, that would require some additional work.

  • @marcozambello4406
    @marcozambello4406 4 года назад

    Cool! how can i determine the last row?

  • @dataptech
    @dataptech 11 дней назад

    oh, thank you! How to loading file google sheet and edit on c# and realtime multi user

  • @beverlyrosereyes3365
    @beverlyrosereyes3365 4 года назад

    Hello Sir. I got this error on response.execute. Please help! Thanks!
    Google.GoogleApiException: 'Google.Apis.Requests.RequestError
    Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See developers.google.com/identity/sign-in/web/devconsole-project. [401]
    Errors [
    Message[Invalid Credentials] Location[Authorization - header] Reason[authError] Domain[global]
    ]

  • @nokori9409
    @nokori9409 4 года назад

    sorry a newbie question, where can i find the termnial?

    • @twilio
      @twilio  4 года назад

      Are you on Mac or Windows?

  • @emeademodepot9976
    @emeademodepot9976 4 года назад

    Would you consider your (.Net core) application as SOAP or as REST ?

  • @jllivebearerph3084
    @jllivebearerph3084 5 лет назад

    dude how did you end up in terminal?

    • @twilio
      @twilio  5 лет назад +1

      In this case, I was using iTerm2 and I just ran the application. If you’re on Windows you could use Command Prompt or Powershell. I edit out the launching of applications usually to keep things moving.

  • @andrewmcvey6499
    @andrewmcvey6499 3 года назад

    Not to necro an old video too much but figured I'd shoot a shot. Anybody figured out how to make something like this work in Unity?

  • @robkraft8141
    @robkraft8141 4 года назад

    Thanks for the video - very helpful to get me started.

  • @HarshColby
    @HarshColby Год назад

    Maybe some of the process has changed in 3 years? I get "System.InvalidOperationException: 'Error creating credential from JSON or JSON parameters. Unrecognized credential type .'"

  • @abhiksingh1999
    @abhiksingh1999 3 года назад

    Great. Thanks you so much. That what I'm lookinh for since a week. Great tutorials.
    Ok, how should we find a practical cell and then update. Suppose I jave to find the name="Abhishek" and if it found then I will to the CRUD operation.

  • @alexterkov6050
    @alexterkov6050 2 года назад

    Thanks! Great video!

  • @noman5879
    @noman5879 4 года назад

    Really helpful tutorial. Thanks!

  • @Юрий-г4ж8у
    @Юрий-г4ж8у 4 года назад

    How to fill the cells with color?

    • @twilio
      @twilio  4 года назад +1

      Check out this stackoverflow answer for details on how to do this in a batch update: stackoverflow.com/a/42926722

    • @Юрий-г4ж8у
      @Юрий-г4ж8у 4 года назад

      @@twilio much obliged!!!)

  • @nico8941
    @nico8941 5 лет назад +1

    We need one for Golang!

    • @twilio
      @twilio  5 лет назад

      Okay, we'll take a look and see if we can get this done :)

  • @gabortompos7934
    @gabortompos7934 4 года назад

    Hi man! Can I get the full code?

    • @twilio
      @twilio  4 года назад

      www.twilio.com/blog/2017/03/google-spreadsheets-and-net-core.html

    • @Ahnaf0404
      @Ahnaf0404 3 года назад

      @@twilio can i filter sheet using this code?? i have phone numbers i want to pass column and phone number to filter the record

  • @musabalriani550
    @musabalriani550 4 года назад

    Thanks a lot ,You were time saver.

  • @davidezekiel9566
    @davidezekiel9566 2 года назад

    Thank You For this !

  • @panadora_crewmate
    @panadora_crewmate 4 года назад +1

    Wow, great !
    Thanks you so much :)

  • @mohamedselim7635
    @mohamedselim7635 3 года назад

    Very helpful ❤️❤️

  • @HenrryPires
    @HenrryPires 10 месяцев назад

    It doesn't work anymore

  • @scopegoat-interactive
    @scopegoat-interactive 4 года назад

    Thanks for the video, helps a lot :)

  • @ibrokhimmalikov2957
    @ibrokhimmalikov2957 Год назад

    Thank you 😇

  • @OlegWin355
    @OlegWin355 3 года назад

    Thank you! 👍

    • @Ahnaf0404
      @Ahnaf0404 3 года назад

      can i filter sheet using this code?? i have phone numbers i want to pass column and phone number to filter the record

  • @cyborgundefined1482
    @cyborgundefined1482 Год назад

    Cool,thanks man ))

  • @akame5584
    @akame5584 4 года назад +1

    Thanks i just coppied that 1o1 and moddified it a bit. ÄHRE

  • @eqton729v
    @eqton729v 2 года назад

    Thank you!

  • @dayzepoch8549
    @dayzepoch8549 3 года назад

    best tutorial

  • @mekoiprincess8019
    @mekoiprincess8019 3 года назад

    Thanks Bro)

  • @ВолкТерМех
    @ВолкТерМех 4 года назад

    thx a lot

  • @longlanding7592
    @longlanding7592 2 года назад

    Thank u

  • @henriqueratuchiniak8777
    @henriqueratuchiniak8777 4 года назад

    thanksssss

  • @alexjawny8705
    @alexjawny8705 5 лет назад +1

    You're my god

    • @twilio
      @twilio  5 лет назад

      Nah, just a video creator who hopefully helped you :)