GET
https://api.cryptohopper.com/v1/social/notifications/{start}/{end}
Returns your social notifications, in the same format as Get your social notifications.
OAuth scope:
read About scopes
Because the handler reads different parameter names than this path forwards, the response always covers the last 14 days, the same as Get your social notifications.
Example request
curl "https://api.cryptohopper.com/v1/social/notifications/START/END" \
-H "access-token: YOUR_ACCESS_TOKEN"
const response = await fetch('https://api.cryptohopper.com/v1/social/notifications/START/END', {
method: 'GET',
headers: {
"access-token": "YOUR_ACCESS_TOKEN"
}
});
const data = await response.json();
import requests
response = requests.get(
"https://api.cryptohopper.com/v1/social/notifications/START/END",
headers={
"access-token": "YOUR_ACCESS_TOKEN"
},
)
data = response.json()
$ch = curl_init('https://api.cryptohopper.com/v1/social/notifications/START/END');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'access-token: YOUR_ACCESS_TOKEN',
],
]);
$data = json_decode(curl_exec($ch), true);
Parameters
Headers
| Name | Type | Required | Description |
|---|---|---|---|
access-token |
string | Required | The OAuth access token of the user. |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
end |
string | Required | Intended end of the window as a Unix timestamp. Ignored for the same reason as start. |
start |
string | Required | Intended start of the window as a Unix timestamp. Forwarded as start, but the handler reads start_time and end_time, so this value is ignored. |
Response
{
"data": {
"items": [],
"start": 1789106400,
"end": 1790316000
}
}