func put(instance *serviceclient.ServiceClient) (*http.Response, error) { jsonString := `{"text":"fake twitter json string"}` reader := strings.NewReader(jsonString) return instance.Put("/bla/blubb", "application/json", reader) }