Digital Media Suite API Forums

« Back to Digital Signs API Forum

RE: Sample Java code using HttpClient 3.0

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Attached you will find a set of classes that demonstrate the usage of our API in Java (with the help of HttpClient 3.0). To use these, place all classes into a single package. The four "main" classes demonstrate the usage of the the four methods: GET, POST, PUT, and DELETE with DMS 5.2 API. The other two classes are support classes that do not directly make any DMS API calls
 
NOTE: In order to use these, you will need to change the file extension from .txt to .java
 
DISCLAIMER:
This code has been made available for demonstration purposes ONLY. Please note that no part of this code is officially supported by Cisco or any of its developers. There is no promise that this code will work appropriately in any given environment. It is strongly discouraged to use this code in a production environment. Neither Cisco nor its developers are responcible for any loss, whether direct or indirect, due to the use of this code.
Attachments:

RE: Sample Java code using HttpClient 3.0
show and share sample code example
Answer
1/25/11 8:00 PM as a reply to Hashir Baqai.
Attaching the POST method example

NOTE: In order to use this, you will need to change the file extension from .txt to .java
 
DISCLAIMER:
This
code has been made available for demonstration purposes ONLY. Please
note that no part of this code is officially supported by Cisco or any
of its developers. There is no promise that this code will work
appropriately in any given environment. It is strongly discouraged to
use this code in a production environment. Neither Cisco nor its
developers are responcible for any loss, whether direct or indirect,
due to the use of this code.
Attachments:

Hi!

Can you provide codes for Apache HttpClient version 4?

There are a lot of changes between version 3 and 4.

Thanks and regards.