Files and Libraries
The following files and libraries are available:
PHP Client Library
Created Jan 31, 2017 8:34:14 PM
Introduction
The PHP client-side library defines the PHP classes that can be (de)serialized to/from JSON. This is useful for accessing the REST endpoints that are published by this application, but only those that produce a JSON representation of their resources (content type "application/json").
This library requires the json_encode function which was included in PHP versions 5.2.0+.
Files
name | size |
---|---|
gentics.contentnode-php.zip | 88.46K |
Ruby Client Library
Created Jan 31, 2017 8:34:04 PM
Introduction
The Ruby client-side library defines the Ruby classes that can be (de)serialized to/from JSON. This is useful for accessing the REST endpoints that are published by this application, but only those that produce a JSON representation of their resources (content type "application/json").
This library leverages the Ruby JSON Implementation, which is required in order to use this library.
JSON REST Example
require 'net/https'
require 'uri'
//...
//read a resource from a REST url
url = URI.parse("...")
request = Net::HTTP::Post.new(url.request_uri)
input = MultiObjectLoadRequest.new
//set up the MultiObjectLoadRequest...
request.body = input.to_json
request['Content-Type'] = "application/json"
http = Net::HTTP.new(url.host, url.port)
//set up additional http stuff...
res = http.start do |ht|
ht.request(request)
end
result = MultiImageLoadResponse.from_json(JSON.parse(res.body))
//handle the result as needed...
Files
name | size |
---|---|
gentics.contentnode.rb | 290.40K |