Method: UnAPI::Service#get_id_in_format
- Defined in:
- lib/unapi/service.rb
#get_id_in_format(id, format) ⇒ Object
39 40 41 42 43 44 45 46 47 |
# File 'lib/unapi/service.rb', line 39 def get_id_in_format(id, format) id_esc = CGI.escape(id) format_esc = CGI.escape(format) request_url = @url + "?id=#{id_esc}&format=#{format_esc}" @document = nil @status_code, body, @content_type = Utils.get request_url @last_url = request_url return body end |