I have never done a API call before and I have been tasked with this task but have no idea what I’m doing. I have the end point URL for the Database but I’m not sure what the client certificate and client password is or how to obtain one. I run the preview with just the end point and get the status code: 0. Could somebody explain what the Client certificate and password is and how I would run a preview and get a preview of the data? Is the client certificate in the form of a URL?
See for an API call, in general, we need few things to perform,
- Endpoint URL
- Authentication Parameters
- Request Headers/Body
It’s not like you need all those as listed above, It will be based on the scenario and the request type.
For your reference, you can go through below
Now coming to how in UiPath, we can achieve an API call by means of HTTP activity
So, as you can see in the above image…
- Endpoint is the URL - which you already figured out
- Client certificate & client password - Authentication method ( you can use this too )
- Request method - Whether you are going to get something or post data to server & others
- Accept response - The response type you are accepting like JSON, XML etc…
- Parameters - This is where you send or retrieve some data to/from the server respectively using various channels like URL, body, headers.
- Authentication - You can choose your authentication type and specify the required parameters for the same.
So where can you find all these is like the docs of the specific API you are trying to use.
Is it a public API? If so, what is the endpoint? Is there documentation of any sort?
If it is internal, then you should ask the owner of the API for documentation. That should tell you how you authenticate, what methods are available, provide a sample call & response, etc.
Each API is different, so it’s impossible to give specific advice without knowing more about the API you’re using.
I have the client endpoint and when I run the preview to see if there is a connection I get the status code:0. Is this telling me that the URL I have is not communicating? If it is communication i should get the status code:200?
This means there is no response either timed out or end point is invalid.
I keep getting the status code:0, I’m starting to think the URL is not the correct URL. I shouldn’t need a password or credentials to see if the URL is communicating? I just just be able to add the URL in the end point and click preview to see if they are communicating?
Try accessing the URL once from your browser.
And there is no need for username and password just to check endpoint. If authentication fails because of username and password it should be a 401 status saying unauthorized.
So basically the issue is not with username or password.
It may be with the URL itself or the network.
So kindly check
This is the solution that I wanted as well
이것은 한국 KS아카데미의 한 명의 Uipath 개발자가 찾아낸 부분입니다.
MORA에게 도움이 되었으면 좋겠습니다.
이 ACCESS 키를 얻고 난 뒤, 아래의 링크에 따라서 시도를 해보십시요!
Here you have a playlist with 10 videos all working with HTTP Request working with Salesforce, ServiceNow, and Jira:
and here you have a playlist with webhooks: