Sushi.Mediakiwi.Module.GoogleSheetsSync
1.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Sushi.Mediakiwi.Module.GoogleSheetsSync --version 1.0.0
NuGet\Install-Package Sushi.Mediakiwi.Module.GoogleSheetsSync -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Sushi.Mediakiwi.Module.GoogleSheetsSync" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Sushi.Mediakiwi.Module.GoogleSheetsSync --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Sushi.Mediakiwi.Module.GoogleSheetsSync, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Sushi.Mediakiwi.Module.GoogleSheetsSync as a Cake Addin #addin nuget:?package=Sushi.Mediakiwi.Module.GoogleSheetsSync&version=1.0.0 // Install Sushi.Mediakiwi.Module.GoogleSheetsSync as a Cake Tool #tool nuget:?package=Sushi.Mediakiwi.Module.GoogleSheetsSync&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Sushi.Mediakiwi.Module.GoogleSheetsSync
A list module for use in Mediakiwi which allows for synchronizing data with GoogleSheets
Installation steps :
- Download the ServiceAccount credentials file from the Google Cloud API explorer.
- Download the OAuth client secrets file from the Google Cloud API explorer (optional).
- Place these files in the Root of your project and set 'Copy to output directory' to always.
- Add these lines to your startup code :
// Get credential Files for Google Sheets
var serviceAccountCredentials = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "sheetsCredentials.json");
var clientSecretCredentials = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "sheetsClientSecret.json");
// Install both Import and Export modules
services.AddGoogleSheetsModules(serviceAccountCredentials, clientSecretCredentials);
This will also create the database table if needed, so the database connectionstring must be known at this point. This can be done with :
MicroORM.DatabaseConfiguration.SetDefaultConnectionString(connString);
Things to note :
- You can also enable only one Module, by setting enableExportModule or enableImportModule.
- You can omit the ClientSecrets file parameter, the module will then use the shared ServiceAccount for creating and uploading the Sheets.
- When using the ClientSecrets param, each user will see it's own personal version of the created Sheet.
- When using only the ServiceAccount param, each user will see the same version of the created Sheet.
- The Import module will only show up if the list has an implementation for the ListDataReceived event.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Google.Apis.Drive.v3 (>= 1.55.0.2566)
- Google.Apis.Sheets.v4 (>= 1.55.0.2371)
- Sushi.Mediakiwi (>= 8.1.18)
- Sushi.MicroORM (>= 2.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.