Closed eigenein closed 4 years ago
❯ http 'https://oauth.ring.com/oauth/token' username="…" password='...' scope=client client_id=ring_official_android grant_type=password
HTTP/1.1 412 Precondition Failed
{
"next_time_in_secs": 60,
"phone": "+3xxxxxxxx44"
}
❯ http 'https://oauth.ring.com/oauth/token' username="…" password='...' scope=client client_id=ring_official_android grant_type=password 2fa-support:true 2fa-code:140429
{
"access_token": "…",
"expires_in": 3600,
"refresh_token": "…",
"scope": "client",
"token_type": "Bearer"
}
❯ http 'https://api.ring.com/clients_api/ring_devices' Authorization:'Bearer ...'
HTTP/1.1 200 OK
❯ http 'https://api.ring.com/clients_api/doorbots/32333947/history' Authorization:'Bearer ...'
HTTP/1.1 200 OK
❯ http --follow 'https://api.ring.com/clients_api/dings/6845923959979729019/recording' Authorization:'Bearer ...'
HTTP/1.1 200 OK
Accept-Ranges: bytes
Content-Length: 3132015
Content-Type: video/mp4
❯ http 'https://oauth.ring.com/oauth/token' scope=client client_id=ring_official_android grant_type=refresh_token refresh_token='...'
HTTP/1.1 200 OK