...
All web service requests require login, before accepting a query. A separate login call is not required for authentication. Login credentials are sent via HTTP Basic Authentication headers, in the requests. An example of the structure in PHP is shown below. Note, that all calls require this login to function properly. Popular web service
Creating a web service account
Follow the creating an account instructions and assign the “web service” role. Ensure the username begins with “restws.”
HTTP Basic Authentication in curl
...