@@ -72,14 +72,19 @@ func (f UpdateKey) MarshalJSON() ([]byte, error) {
72
72
// App provides kintone application API client.
73
73
//
74
74
// You need to provide Domain, User, Password, and AppId.
75
- // You can also use the api token instead of user/password.
76
- // When using Google AppEngine, you must supply Client too.
75
+ // You can also use an API token instead of user/password.
76
+ // If you require specialized client settings, for instance
77
+ // need to specify a client certificate, proxy settings, or
78
+ // are using Google AppEngine, you can build an *http.Client
79
+ // instance and supply it to Client.
80
+ //
81
+ // ex: Google AppEngine
77
82
//
78
83
// import (
79
84
// "appengine"
80
85
// "appengine/urlfetch"
81
86
// "github.com/kintone/go-kintone"
82
- // "http"
87
+ // "net/ http"
83
88
// )
84
89
//
85
90
// func handler(w http.ResponseWriter, r *http.Request) {
@@ -88,6 +93,22 @@ func (f UpdateKey) MarshalJSON() ([]byte, error) {
88
93
// ...
89
94
// }
90
95
//
96
+ // ex: proxy
97
+ //
98
+ // import (
99
+ // "net/http"
100
+ // "net/url"
101
+ // "github.com/kintone/go-kintone"
102
+ // )
103
+ //
104
+ // func main() {
105
+ // proxyURL, _ := url.Parse("https://proxy.example.com")
106
+ // transport := &http.Transport{Proxy: http.ProxyURL(proxyURL)}
107
+ // client := &http.Client(Transport: transport)
108
+ // app := &kintone.App{Client: client}
109
+ // ...
110
+ // }
111
+ //
91
112
// Errors returned by the methods of App may be one of *AppError,
92
113
// ErrTimeout, ErrInvalidResponse, or ErrTooMany.
93
114
type App struct {
0 commit comments