Back Instruction
First words
This is a basic introduction to our API.
If you want to dive deeper into what is happening, check out the more detailed technical documentation.
API Help
What’s a REST API, anyway?
An API is an application programming interface - in short, it’s a set of rules that lets programs talk to each other, exposing data and functionality across the internet in a consistent format. REST stands for Representational State Transfer. This is an architectural pattern that describes how distributed systems can expose a consistent interface. When people use the term ‘REST API,’ they are generally referring to an API accessed via HTTP protocol at a predefined set of URLs. These URLs represent various resources - any information or content accessed at that location, which can be returned as JSON, HTML, audio files, or images. Often, resources have one or more methods that can be performed on them over HTTP, like GET, POST, PUT and DELETE.
Authentication
The Miller Partner Portal uses API-Keys to authenticate requests. You can view and manage your API-Keys in the Stripe Dashboard.
Authentication to the API is performed via key authentification as header information: -H "ApiKey: [Your API-Key]".
Your authentification key carry many privileges, so be sure to keep it secure! Do not share your authentification key in publicly accessible areas.
API requests without authentication fail and are returned with error code 401 Unauthorized.
Note:
If you want XML format instead of JSON, change "application/json" to "application/xml" in your header information.
For your TEST API calls, please use "https://www.miller-incoming-api.de/api/".
If you are ready for your LIVE system, just replace the URL with "https://www.miller-partner-portal.com/api/".
All requests via this URL are rated as serious requests.
Some code examples:
cURL
curl -H "ApiKey: [Your API-Key]" -H "Content-type: application/json" -H "Accept: application/json" -k https://www.miller-incoming-api.de/api/ServiceItem/GetAllServices?language=en&startDate=20.02.2021&endDate=20.02.2022
PHP
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://www.miller-incoming-api.de/api/ServiceItem/GetAllServices?language=en&startDate=20.02.2021&endDate=20.02.2022'); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'ApiKey: [Your API-Key]', 'Content-type: application/json', 'Accept: application/json' )); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $result = curl_exec($ch); if(!$result){die("Connection Failure");} curl_close($ch); echo $result; ?>