Sha256: f80484b674af0932c6130c36431bc5c52e8f75929f398de7220d73afc464fff7

Contents?: true

Size: 1.13 KB

Versions: 36

Compression:

Stored size: 1.13 KB

Contents

# SnapTrade::APIStatusApi

All URIs are relative to *https://api.snaptrade.com/api/v1*

| Method | HTTP request | Description |
| ------ | ------------ | ----------- |
| [**check**](APIStatusApi.md#check) | **GET** / | Get API Status |

## check

Get API Status

Check whether the API is operational and verify timestamps.

### Example

```ruby
require 'snaptrade'

SnapTrade.client_id = "YOUR_CLIENT_ID"
SnapTrade.consumer_key = "YOUR_CONSUMER_KEY"


begin
  # Get API Status
  result = SnapTrade::APIStatus.check
  p result
rescue SnapTrade::ApiError => e
  puts "Exception when calling SnapTrade::APIStatus.check: #{e}"
end
```

#### Using the check_with_http_info variant

This returns an Array which contains the response data, status code and headers.

```ruby

begin
  # Get API Status
  data, status_code, headers, response = SnapTrade::APIStatus.check_with_http_info
  p status_code # => 2xx
  p headers # => { ... }
  p data # => Status
rescue SnapTrade::ApiError => e
  puts "Exception when calling SnapTrade::APIStatus.check: #{e}"
end
```

### Parameters

This endpoint does not need any parameter.

### Return type

[**Status**](Status.md)

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
snaptrade-2.0.7 docs/APIStatusApi.md
snaptrade-2.0.6 docs/APIStatusApi.md
snaptrade-2.0.5 docs/APIStatusApi.md
snaptrade-2.0.4 docs/APIStatusApi.md
snaptrade-2.0.3 docs/APIStatusApi.md
snaptrade-2.0.2 docs/APIStatusApi.md
snaptrade-2.0.1 docs/APIStatusApi.md
snaptrade-2.0.0 docs/APIStatusApi.md
snaptrade-1.17.13 docs/APIStatusApi.md
snaptrade-1.17.12 docs/APIStatusApi.md
snaptrade-1.17.11 docs/APIStatusApi.md
snaptrade-1.17.10 docs/APIStatusApi.md
snaptrade-1.17.9 docs/APIStatusApi.md
snaptrade-1.17.8 docs/APIStatusApi.md
snaptrade-1.17.7 docs/APIStatusApi.md
snaptrade-1.17.6 docs/APIStatusApi.md
snaptrade-1.17.5 docs/APIStatusApi.md
snaptrade-1.17.4 docs/APIStatusApi.md
snaptrade-1.17.3 docs/APIStatusApi.md
snaptrade-1.17.2 docs/APIStatusApi.md