First thing to change is your URL, it should read:
Switch that and you should be in a much better place. =)
Thanks Ryan. It work for me to resolve that issue.
But again I am facing new issue.
The remote server returned an error: (415) Unsupported Media Type. - https://zsassociates.jiveon.com/api/core/v3/images - uc6902
Here is my C# Code:
requestPayload = new XElement("uploadImage", new XElement("content-type", "application/json"), new XElement("mediaType", "application/json"), new XElement("imageURI", StrPicUrl));
XElement responseText = ApiRequest.GetResponse(requestUrl, requestPayload.ToString(), "POST", _apiCredentials, networkId);
Do you debug information of the actual Json and headers that cross the wire? Also, you can drop the media type header.
Normally this error suggests that either the Json you are sending is invalid, or you are not declaring the content-type header correctly.
This is format of data, I am sending
UMesh, you are passing XML (not JSON), and also you are passing HTTP Headers as part of the body, rather than in headers.
Here is an example of calling an images service:
curl -i -u user:pass -X POST -F "file=@your_file.jpg;type=image/jpg" "https://your_jive_instance/api/core/v3/images"
Note: That this is a Multi-Part request. Once this request completes and you get a 201, there will be a Location header in the response that has the Jive API URI for the new image you uploaded that you can use to pass into other parts of the API.
I would strongly recommend that you try the cURL operation first, and then structure your .NET code to emulate the outputs. As it stands, it does not appear that you are following the REST service defined here: Jive REST API v3.14 → Image service
Hope that helps.
I tried with CURL but facing below issue.
curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
SSL is disable at our site and we have tlsv version1. Can you please let me know the command for the same.?