api/worksheet.go
func (a *API) FetchWorksheets() (*[]Worksheet, error) {
	result, err := a.Get(config.WorksheetPrefix)
	if err != nil {
		return nil, err
	}

	var worksheets []Worksheet
	if err := json.Unmarshal(result, &worksheets); err != nil {
		return nil, err
	}

	return &worksheets, nil
}
func (a *API) FetchWorksheets() (*[]Worksheet, error) {
	result, err := a.Get(config.WorksheetPrefix)
	if err != nil {
		return nil, err
	}

	var worksheets []Worksheet
	if err := json.Unmarshal(result, &worksheets); err != nil {
		return nil, err
	}

	return &worksheets, nil
}
func ( a * API ) FetchWorksheets ( ) ( * [ ] Worksheet , error ) { result , err := a . Get ( config . WorksheetPrefix ) if err != nil { return nil , err } var worksheets [ ] Worksheet if err := json . Unmarshal ( result , & worksheets ) ; err != nil { return nil , err } return & worksheets , nil }
// FetchWorksheets retrieves all worksheets available to API Token.
FetchWorksheets retrieves all worksheets available to API Token .