Permalink
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (15 sloc) 348 Bytes
package main
import (
"os"
"strconv"
"github.com/kintone/go-kintone"
)
func newApp() *kintone.App {
appID, _ := strconv.ParseUint(os.Getenv("KINTONE_APP_ID"), 10, 64)
return &kintone.App{
Domain: os.Getenv("KINTONE_DOMAIN"),
User: os.Getenv("KINTONE_USERNAME"),
Password: os.Getenv("KINTONE_PASSWORD"),
AppId: appID,
}
}