Method: UnifiProtect::API#http_request_with_bearer_token
- Defined in:
- lib/unifi_protect/api.rb
#http_request_with_bearer_token(uri, method: :get, body: nil) ⇒ Object
80 81 82 83 84 85 |
# File 'lib/unifi_protect/api.rb', line 80 def http_request_with_bearer_token(uri, method: :get, body: nil) return http_get_with_bearer_token(uri) if method == :get return http_post_with_bearer_token(uri, body: body) if method == :post nil end |