gwrap

package module
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2023 License: MIT Imports: 8 Imported by: 0

README

Google-Wrapper

Simple Package that wrap google-api to make it easy to use.

currently feature :

  • Duplicate Files
  • Upload File and auto-detect mimetype if not given
  • Get Location from text
  • Get URI from file id drive
  • Delete files
  • Find and Replace Text
  • Create and Download PDF
  • Create Config from credential json file
go get -u all
go mod tidy
git tag                                 #check current version
git tag v0.0.3                          #set tag version
git push origin --tags                  #push tag version to repo
go list -m github.com/aiteung/gwrap@v0.0.3   #publish to pkg dev, replace ORG/URL with your repo URL

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient(config *oauth2.Config, fileName string) *http.Client

func NewGoogleConfig

func NewGoogleConfig(filePath string, scope ...string) (cfg *oauth2.Config, err error)

func SaveToken

func SaveToken(path string, token *oauth2.Token)

func TokenFromFile

func TokenFromFile(file string) (*oauth2.Token, error)

Types

This section is empty.

Directories

Path Synopsis
example

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL