コード例 #1
0
func getSecure(instance *serviceclient.ServiceClient) (*http.Response, error) {
	return instance.GetSecure("/bla")
}
コード例 #2
0
func post(instance *serviceclient.ServiceClient) (*http.Response, error) {
	jsonString := `{"text":"fake twitter json string"}`
	reader := strings.NewReader(jsonString)
	return instance.Post("/bla/blubb", "application/json", reader)
}
コード例 #3
0
func deleteNormal(instance *serviceclient.ServiceClient) (*http.Response, error) {
	return instance.Delete("/bla")
}