Skip to content

Commit

Permalink
Add Google Sheets scoping for this library
Browse files Browse the repository at this point in the history
  • Loading branch information
edocsss committed Aug 27, 2022
1 parent 757ce9b commit cbf4c0e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions models.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package freeleh
import (
"context"
"errors"
"github.com/FreeLeh/GoFreeLeh/google/auth"
"regexp"
"strconv"

Expand Down Expand Up @@ -51,6 +52,11 @@ var (
ErrKeyNotFound = errors.New("error key not found")
)

// FreeDBGoogleAuthScopes specifies the list of Google Auth scopes required to run FreeDB implementations properly.
var (
FreeDBGoogleAuthScopes = auth.GoogleSheetsReadWrite
)

var (
defaultRowHeaderRange = "A1:" + generateColumnName(maxColumn-1) + "1"
defaultRowFullTableRange = "A2:" + generateColumnName(maxColumn-1)
Expand Down

0 comments on commit cbf4c0e

Please sign in to comment.