Using RICOH ProcessDirector REST API documentation
The REST API documentation includes many APIs that an application can use to integrate with RICOH ProcessDirector. You can use the REST API documentation and testing interface to test your parameter settings. When you use the interface to test web services, you access the RICOH ProcessDirector primary server. Actions such as creating, deleting, and enabling objects are executed on the primary server and are reflected in the RICOH ProcessDirector user interface. As a result, we suggest creating objects specifically for testing purposes.
These steps demonstrate how to request the log files for an object using REST APIs. These steps log you in to RICOH ProcessDirector, request the log files for the Sample printer, and log you out.
- Open a web browser and enter your RICOH ProcessDirector host name or IP address into the address bar. Add /restapi/ to the end of your host name or IP address to access the REST API documentation. For example, http://hostname:15080/restapi/
- In the users section and find POST /users/login.
- Click Try it out.
- Log in to RICOH ProcessDirector by entering your RICOH ProcessDirector credentials:
- For the name parameter, enter your RICOH ProcessDirector user name.
- For the pwd parameter, enter the password associated with your RICOH ProcessDirector user name.
- Click Execute.The REST API documentation uses the values you enter to build a Curl command and a Request URL. Then it submits the request to the request URL and logs you in.
RICOH ProcessDirector sends a response indicating whether you successfully logged in. The response includes additional information including the token and the actions that this User ID is allowed to do.
- In the Response Body box, find and copy the token value.
- In the objects section, scroll down until you find POST /objects/log/{objectType}/{name}.
- Click Try it out.
- Retrieve the log messages for the Sample printer by entering these parameters:
- For the token parameter, paste the token you copied above.
- For the objectType parameter, type Printer.The values for objectType are case-sensitive. You can use the web service POST /util/objecttypes to get a list of object types available on your system. The web service POST /util/objecttypes is found in the util section.
- For the name parameter, type Sample.
- Click Execute.The log entries for the Sample printer are returned in the Response Body box.
The Curl and Request URL values are also returned.
- In the users section find POST /users/logout/{name}.
- Click Try it out.
- Log out of RICOH ProcessDirector:
- For the token parameter, paste the token you copied above.
- For the name parameter, enter your RICOH ProcessDirector user name.
- Click Execute.You are logged out of RICOH ProcessDirector.
-
Example values are included with certain APIs. With example values you can update the sample code and modify it for testing.
These steps demonstrate how to use a REST API to connect a hot folder using an example value. These steps log you in to RICOH ProcessDirector, set the Input Device to accept files from HotFolderPDF, and log you out.
- Open the REST API interface as above.
- In the users section and find POST /users/login.
- Click Try it out.
- Log in to RICOH ProcessDirector by entering your RICOH ProcessDirector credentials:
- For the name parameter, enter your user name.
- For the pwd parameter, enter the password associated with your user name.
- Click Execute.
- In the Response Body box, find and copy the token value.
- In the objects section, scroll until you find POST /objects/{objectType}/connect.
- Click Try it out.
- Connect HotFolderPDF by entering these parameters:
- For the token parameter, paste the token you copied above.
- For the objectType parameter, type InputDevice.The values for objectType are case-sensitive. You can use the web service POST /util/objecttypes to get a list of object types available on your system. The web service POST /util/objecttypes is found in the util section.
- For the body parameter, click Edit Value. Example text displays in a code box. Replace the word “string” with “HotFolderPDF”. Make sure the double quotes are around the name of the object.
- Click Execute.The properties and settings for HotFolderPDF are returned in the Response Body box. The Response Code and Response Headers are also returned.
- In the users section find POST /users/logout/{name}.
- Click Try it out.
- Log out of RICOH ProcessDirector:
- For the token parameter, paste the token you copied above.
- For the name parameter, enter your RICOH ProcessDirector user name.
- Click Execute.You are logged out of RICOH ProcessDirector.