In order to consume the API, you will need to pass the Authorization
header in the request. The header is generated via the below logic.
The Authorization
header consists of username
and password
which will be provided by the admins or maintainer of this site. However in order not to pass the username and password in the plain text, you will have to encode the value using Base64 library.
For Java, you may use the below line: