Authentication (web) - 1080Motion/API GitHub Wiki
To use the API you need to provide a valid 1080 API Key. To get a key, contact 1080 support.
When you have a key, set the X-1080-API-Key
HTTP header with the API key:
X-1080-API-Key: <your-key-here>
Exactly how this is done depends on the programming language and/or HTTP client used, but here are some examples to get started:
In .NET/C#
var client = new HttpClient();
// Add the header automatically to all requests from here on
client.DefaultRequestHeaders.Add("X-1080-API-Key", "<your-key-here>");
// Start querying the API
var exerciseLibrary = client.GetStringAsync("https://publicapi.1080motion.com/ExerciseType");
In Python
import requests
headers = {
"X-1080-API-Key": "<your-key-here>"
}
# Optional parameters
params = { }
response = requests.get("https://publicapi.1080motion.com/ExerciseType", headers=headers, params=params)
R
httr::GET('https://publicapi.1080motion.com/ExerciseType',
accept_json(),
add_headers('X-1080-API-Key' = '<your-key-here>'))
Curl command line
curl -X GET --header 'X-1080-API-Key: <your-key-here>' 'https://publicapi.1080motion.com/ExerciseType'