Below two things are am trying in zammad,
- adding a new function button in chat box like reply.
- with that button I’m trying to call one api from outside.
Below is my code sample for API access,
url = URI("****")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
request = Net::HTTP::Post.new(url)
request["x-redmine-api-key"] = ''
request["content-type"] = 'application/json'
request["cache-control"] = 'no-cache'
request.body = ""
response = http.request(request)
With this code i have created the .szpm file as per (Examples of zpm files?). After installation & restart of server, while trying to access the route which i mentioned in .szpm file in the location field, am getting the “server error : 500”.
I have few doubts in .szpm file
* what is build host? for that which detail i need to give in the field.
*for my functionality(new button funtion for chat box) which location of zammad i need to give in the location field.
Thanks in advance.