docs: add connectivity section to version 1

This commit is contained in:
Stevan Freeborn
2023-04-22 19:23:16 -05:00
parent d1fe5d43ce
commit 0f4a532c33
5 changed files with 40 additions and 0 deletions
@@ -0,0 +1,25 @@
# Checking for connection to the api
{% code method="GET" heading="/Ping" defaultLanguage="bash" %}
```bash
curl --location 'https://api.onspring.com/v1/Ping' \
--header 'X-ApiKey: 000000ffffff000000ffffff/00000000-ffff-0000-ffff-000000000000'
```
```csharp
using Onspring.API.SDK.Helpers;
var httpHelper = new HttpHelper(
config.baseUrl,
config.apiKey
);
if (httpHelper.CanConnect())
{
Console.WriteLine("Connected to Onspring API");
}
```
{% /code %}