This commit is contained in:
Jay
2019-12-10 14:15:27 +00:00
commit 369e8d3f6e
12 changed files with 349 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
package google
// GetCalendarList -
func GetCalendarList() (err error) {
p := "/calendar/v3/users/me/calendarList"
u, err := getURL(p)
if err != nil {
return
}
_ = u
return
}
+24
View File
@@ -0,0 +1,24 @@
package google
import "net/url"
var baseURL = "https://www.googleapis.com/"
func getURL(p string) (string, error) {
u, err := url.Parse(baseURL)
if err != nil {
return "", err
}
u, err = u.Parse(p)
if err != nil {
return "", err
}
return u.String(), nil
}
func getHeaders() map[string]string {
obj := make(map[string]string)
// conf := config.Get()
return obj
}