Get list of available calculators
curl --request GET \
--url https://calculators.symmetry.com/api/calculators \
--header 'pcc-api-key: <api-key>'import requests
url = "https://calculators.symmetry.com/api/calculators"
headers = {"pcc-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'pcc-api-key': '<api-key>'}};
fetch('https://calculators.symmetry.com/api/calculators', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://calculators.symmetry.com/api/calculators",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"pcc-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://calculators.symmetry.com/api/calculators"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("pcc-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://calculators.symmetry.com/api/calculators")
.header("pcc-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://calculators.symmetry.com/api/calculators")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["pcc-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"_links": {
"401k": {
"href": "https://calculators.symmetry.com/api/calculators/401k?state=&format=&print=false&imputed=false"
},
"403b": {
"href": "https://calculators.symmetry.com/api/calculators/403b?state=&format=&print=false&imputed=false"
},
"bonus-agregate": {
"href": "https://calculators.symmetry.com/api/calculators/agbonus?state=&format=&print=false&imputed=false"
},
"bonus-percent": {
"href": "https://calculators.symmetry.com/api/calculators/flatbonus?state=&format=&print=false&imputed=false&date=0"
},
"finalpay": {
"href": "https://calculators.symmetry.com/api/calculators/finalpay?state=&format=&print=false&imputed=false"
},
"grossup": {
"href": "https://calculators.symmetry.com/api/calculators/grossup?state=&format=&print=false&imputed=false"
},
"hourly": {
"href": "https://calculators.symmetry.com/api/calculators/hourly?state=&format=&print=false&imputed=false"
},
"salary": {
"href": "https://calculators.symmetry.com/api/calculators/salary?state=&format=&print=false&imputed=false"
},
"self": {
"href": "https://calculators.symmetry.com/api/calculators"
},
"stockoption": {
"href": "https://calculators.symmetry.com/api/calculators/stockoption?state=&format=&print=false&imputed=false"
},
"taxtip": {
"href": "https://calculators.symmetry.com/api/calculators/taxtip?state=&format=&print=false&imputed=false"
},
"tuition": {
"href": "https://calculators.symmetry.com/api/calculators/tuition?state=&format=&print=false&imputed=false"
}
},
"content": "Calculators"
}{
"message": "Bad Request, make sure to use GET request"
}{
"message": "No api key found"
}{
"message": "Invalid api key"
}{
"error": "Not Found",
"path": "/api/calculators/badpath",
"status": 404,
"timestamp": 1641573466465
}{
"error": "Method Not Allowed",
"path": "/api/calculators/",
"status": 405,
"timestamp": 1641572607838
}This response has no body data.Get list of available calculators
Returns a list of all available paycheck calculators with HATEOAS links
GET
/
calculators
Get list of available calculators
curl --request GET \
--url https://calculators.symmetry.com/api/calculators \
--header 'pcc-api-key: <api-key>'import requests
url = "https://calculators.symmetry.com/api/calculators"
headers = {"pcc-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'pcc-api-key': '<api-key>'}};
fetch('https://calculators.symmetry.com/api/calculators', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://calculators.symmetry.com/api/calculators",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"pcc-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://calculators.symmetry.com/api/calculators"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("pcc-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://calculators.symmetry.com/api/calculators")
.header("pcc-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://calculators.symmetry.com/api/calculators")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["pcc-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"_links": {
"401k": {
"href": "https://calculators.symmetry.com/api/calculators/401k?state=&format=&print=false&imputed=false"
},
"403b": {
"href": "https://calculators.symmetry.com/api/calculators/403b?state=&format=&print=false&imputed=false"
},
"bonus-agregate": {
"href": "https://calculators.symmetry.com/api/calculators/agbonus?state=&format=&print=false&imputed=false"
},
"bonus-percent": {
"href": "https://calculators.symmetry.com/api/calculators/flatbonus?state=&format=&print=false&imputed=false&date=0"
},
"finalpay": {
"href": "https://calculators.symmetry.com/api/calculators/finalpay?state=&format=&print=false&imputed=false"
},
"grossup": {
"href": "https://calculators.symmetry.com/api/calculators/grossup?state=&format=&print=false&imputed=false"
},
"hourly": {
"href": "https://calculators.symmetry.com/api/calculators/hourly?state=&format=&print=false&imputed=false"
},
"salary": {
"href": "https://calculators.symmetry.com/api/calculators/salary?state=&format=&print=false&imputed=false"
},
"self": {
"href": "https://calculators.symmetry.com/api/calculators"
},
"stockoption": {
"href": "https://calculators.symmetry.com/api/calculators/stockoption?state=&format=&print=false&imputed=false"
},
"taxtip": {
"href": "https://calculators.symmetry.com/api/calculators/taxtip?state=&format=&print=false&imputed=false"
},
"tuition": {
"href": "https://calculators.symmetry.com/api/calculators/tuition?state=&format=&print=false&imputed=false"
}
},
"content": "Calculators"
}{
"message": "Bad Request, make sure to use GET request"
}{
"message": "No api key found"
}{
"message": "Invalid api key"
}{
"error": "Not Found",
"path": "/api/calculators/badpath",
"status": 404,
"timestamp": 1641573466465
}{
"error": "Method Not Allowed",
"path": "/api/calculators/",
"status": 405,
"timestamp": 1641572607838
}This response has no body data.⌘I

