Google Sheets and .NET Core with C#

Поділитися
Вставка
  • Опубліковано 13 тра 2019
  • If you’d like to use the data in your Google Sheets projects from your C# applications, this is the guide for you.
    We’ll use Google’s official v4 API SDK for .NET to access an example spreadsheet inside of Google Sheets.
    Read the blog post for more: www.twilio.com/blog/2017/03/g...
  • Наука та технологія

КОМЕНТАРІ • 112

  • @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!

  • @user-xr4eh8sl8y
    @user-xr4eh8sl8y 4 роки тому +10

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

  • @AleksandarBulovic
    @AleksandarBulovic Рік тому

    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!

  • @bloopydlooper8198
    @bloopydlooper8198 3 роки тому +3

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

  • @iliqn20
    @iliqn20 5 років тому +8

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

    • @twilio
      @twilio  5 років тому +1

      Thanks for watching!

  • @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!

  • @simonroyjonesuk
    @simonroyjonesuk 2 роки тому +2

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

  • @ElysiaGriffin
    @ElysiaGriffin Рік тому

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

  • @Richard-uk3cr
    @Richard-uk3cr 2 роки тому

    Thank you. Better than google's own tutorials.

  • @Superbbsuper
    @Superbbsuper 2 роки тому

    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!

  • @noman5879
    @noman5879 4 роки тому

    Really helpful tutorial. Thanks!

  • @robkraft8141
    @robkraft8141 4 роки тому

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

  • @panadora_crewmate
    @panadora_crewmate 4 роки тому +1

    Wow, great !
    Thanks you so much :)

  • @musabalriani550
    @musabalriani550 4 роки тому

    Thanks a lot ,You were time saver.

  • @scopegoat-interactive
    @scopegoat-interactive 4 роки тому

    Thanks for the video, helps a lot :)

  • @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

  • @alexterkov6050
    @alexterkov6050 Рік тому

    Thanks! Great video!

  • @davidezekiel9566
    @davidezekiel9566 2 роки тому

    Thank You For this !

  • @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 Рік тому

    I hope this gets updated so it can be relly useful

  • @mohamedselim7635
    @mohamedselim7635 3 роки тому

    Very helpful ❤️❤️

  • @cyborgundefined1482
    @cyborgundefined1482 Рік тому

    Cool,thanks man ))

  • @ibrokhimmalikov2957
    @ibrokhimmalikov2957 Рік тому

    Thank you 😇

  • @ericyang9404
    @ericyang9404 2 роки тому

    Thank you!

  • @alexanderduncan6221
    @alexanderduncan6221 3 роки тому +1

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

  • @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.

  • @dayzepoch8549
    @dayzepoch8549 3 роки тому

    best tutorial

  • @KarolisBlazevicius
    @KarolisBlazevicius 5 років тому

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

  • @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

  • @raymond1489
    @raymond1489 4 роки тому

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

  • @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.

  • @fastersixth
    @fastersixth 3 роки тому +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?

    • @indirectthought8150
      @indirectthought8150 3 роки тому

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

  • @user-fo1th1cv3q
    @user-fo1th1cv3q 4 роки тому

    thx a lot

  • @mekoiprincess8019
    @mekoiprincess8019 3 роки тому

    Thanks Bro)

  • @marcozambello4406
    @marcozambello4406 4 роки тому

    Cool! how can i determine the last row?

  • @longlanding7592
    @longlanding7592 Рік тому

    Thank u

  • @ofbaran
    @ofbaran 2 роки тому

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

  • @walney2008
    @walney2008 4 роки тому

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

  • @paritoshgavali
    @paritoshgavali 4 роки тому +2

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

  • @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

  • @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?

  • @nico8941
    @nico8941 4 роки тому +1

    We need one for Golang!

    • @twilio
      @twilio  4 роки тому

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

  • @VISHNUKUMAR-bh8uj
    @VISHNUKUMAR-bh8uj 3 роки тому

    How can I create another sheet in the same file?

  • @henriqueratuchiniak8777
    @henriqueratuchiniak8777 3 роки тому

    thanksssss

  • @25kyro
    @25kyro 2 роки тому

    How can I insert a column of values?

  • @zeironman3934
    @zeironman3934 2 роки тому

    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  2 роки тому

      Are you getting an error?

  • @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?

  • @faisalzubair2612
    @faisalzubair2612 Рік тому

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

  • @user-gm2nz8oe7u
    @user-gm2nz8oe7u 4 роки тому +4

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

    • @HoaQB208
      @HoaQB208 4 роки тому +8

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

  • @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.

  • @user-ny5tl9cr2q
    @user-ny5tl9cr2q 4 роки тому

    can we make it with visual basic .net please ?

  • @akame5584
    @akame5584 4 роки тому +1

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

  • @_SkyDancer
    @_SkyDancer 2 роки тому

    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?

  • @dungtran-bb8zx
    @dungtran-bb8zx 2 роки тому

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

  • @emeademodepot9976
    @emeademodepot9976 4 роки тому

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

  • @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.

  • @naninoni7086
    @naninoni7086 2 роки тому +1

    Does this still work?

  • @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 :)

  • @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

  • @user-zh6pq2ew4n
    @user-zh6pq2ew4n 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 2 роки тому +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.

  • @nokori9409
    @nokori9409 4 роки тому

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

    • @twilio
      @twilio  4 роки тому

      Are you on Mac or Windows?

  • @MakeItHappenWithExcel2
    @MakeItHappenWithExcel2 Рік тому

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

  • @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'."

  • @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 4 роки тому

      @@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

  • @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?

  • @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?

  • @jllivebearerph3084
    @jllivebearerph3084 4 роки тому

    dude how did you end up in terminal?

    • @twilio
      @twilio  4 роки тому +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.

  • @caglarcansarikaya1550
    @caglarcansarikaya1550 11 місяців тому

    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.

  • @eraybalaban1839
    @eraybalaban1839 Місяць тому

    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.

  • @valentyn4367
    @valentyn4367 Рік тому

    Can I use Google sheets for 1000 clients?

  • @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

  • @user-qe8tu3nz4j
    @user-qe8tu3nz4j 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

    • @user-qe8tu3nz4j
      @user-qe8tu3nz4j 4 роки тому

      @@twilio much obliged!!!)

  • @alexjawny8705
    @alexjawny8705 4 роки тому +1

    You're my god

    • @twilio
      @twilio  4 роки тому

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

  • @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]
    ]

  • @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) ?

  • @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

  • @HenrryPires
    @HenrryPires 5 місяців тому

    It doesn't work anymore

  • @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 .'"

  • @rasheedmalik6594
    @rasheedmalik6594 2 роки тому +1

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

    • @twilio
      @twilio  2 роки тому +1

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

    • @rasheedmalik6594
      @rasheedmalik6594 2 роки тому

      @@twilio Thankyou